Help with Custom Sound

Paradox

2010-02-02 03:19:29

So Im trying to add a custom sound to my map. Ive tried MP3 and .wav files. I made sure the sound parameters were correct: mono, 128 bit, 44000 htz or w/e its supposed to be. Put the sound file in the sound folder. Pointed the amibient_generic entity to the sound in the sound folder. Fucking thing wont play.

Any ideas??

[EYE] Valar

2010-02-02 05:02:55

i know 8 bit and 16 bit. not 128. check one of the audios from the game to make sure ure setting are correct.
now ...on the ambient_generic flags you got start silent checked? you may need to force play it using a trigger or someit.

Paradox

2010-02-02 05:56:05

No I unchecked start silent. Want this to play as background/environmental sound. Ill check the triggers for on start or something like that.

[EYE] Valar

2010-02-02 06:08:17

try flagging it to start silent and then trigger the sound after 1-2 secs after map starts. trigger can even be a logic_auto > OnMapSpawn > sound-name > Play Sound (after a delay of xx.xx sec)

[BK]AC1

2010-03-11 00:35:45

hi
maybe about the sound radius..
too small ? check the "play everywhere" flag aswell for testing
or wrong sound directory?

u can also try to use an soundscript.. lil more difficult then the ambientgeneric-trigger way..
but comming very handy for different sounds in different areas of your map then.

here a info link for this one..
http://developer.valvesoftware.com/wiki/Soundscape

boshed

2010-03-13 20:32:19

Paradox wrote:No I unchecked start silent. Want this to play as background/environmental sound. Ill check the triggers for on start or something like that.
By a background sound I presume you mean it needs to loop? In that case it will need loop points adding to the wav

As mentioned by AC1 though soundscapes are really the way to go for environment sounds.

Skaruts

2010-04-08 00:51:15

Isn't the max bit rate for HL2 11000 or something? At least to play sounds with HLDJ there's a very low limit to it. I dunno about sounds in this way.
But I know I used some custom sounds in a map, I'll go check it out to see if I remember any issues I might have had.

Paradox

2010-04-08 04:58:33

I gave up on the sound. I couldnt get it to work. I looked at the soundscapes info and couldnt figure it out.

[EYE] Valar

2010-04-11 02:30:31

send me your vmf and sound name (or if custom sound - the file itself) and ill have a look. hit me on Steam.