can i add custom sounds by .mp3 instead of .wav?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
tsensor
Sergeant
Posts: 52
Joined: Wed Feb 11, 2004 1:25 pm

can i add custom sounds by .mp3 instead of .wav?

Post by tsensor »

i have to add sound in local area in my map

i think that ambient sound and music play sound all the area




i tried add custom sound .mp3 file
sound played fast
it is not good to hear
User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Post by Jack Ruby »

Mp3's work fine, theres some sound parms which control volume, pitch and a few other things.

Heres an example:

aliascache totalwar sound/nazaire/totalwar.mp3 soundparms 1.0 0.0 0.0 0.0 500 3000 item loaded maps "dm obj"

// soundparms parameters are: <BaseVolume> <RandVolume> <BasePitch> <randPitch> <minDist> <maxDist> <Channel> <Loaded/Streamed> <Maps>


So the 4th set of numbers control the pitch ( speed ) of the mp3. Set it to 0.0 and it shouldnt deviate from the original pitch.
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

The pitch! doe............
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

do mp3's have to be streamed as well from outside a pak ?
User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Post by Jack Ruby »

For example the path to this mp3 I have playing in my map is this:

sound/nazaire/totalwar.mp3

so just replicate this folder structure but adapted to your file names and include the folders and sound file in the pk3, the sound should play from your pk3, wont need to be outside the pk3.
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

I've often wondered about that, but I have had custom mp3's in 3 of my maps and no-one has complained about not hearing it. I always put them in the sound folder in my custom pk3. Could be the new workaround has solved any problems there were.

Its great having sound at last, sound is so important in imersing a player into your level.

:)
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Post Reply