Please or Register to create posts and topics.

Custom Sound Problem

I'm trying to import a custom sound into my map, but I can't get it to play in the level. It shows up and plays correctly in the sound browser, but when I compile and run the map, it doesn't work. Any ideas?

Do you have a trigger that activates the sound? :D

Trivia: this is the very second account I registered with the nickname ASBusinessMagnet, after my YouTube channel.

Yes, a button. When the button is pressed, it fires a PlaySound on the ambient_generic. The ambient_generic has Start Silent checked. This setup works with other in-game sounds, so the only difference is the audio file.

This must have something to do with the format of the sound. Make sure the WAV file is not compressed (I don't know if other requirements as frequency etc... are required).

Also try looking into the console, it could write an error message saying why it couldn't play the sound.

Test Chamber 74:
(percentage calculation sphere self-test failed!)
108.1% done, -8.1% remaining...
Released here!

All maps for Portal (1/2) worth playing are mirrored here.

I had this problem. See if your sound folder in the portal directory is named "sound" and NOT "sounds". took me ages to notice this cos all the other folders have an "s" on the end except sound.

crafty valve imo :)

Hope it helps

It is "sound". I had read about that problem previously and was careful to avoid it. :P That wouldn't be an issue anyways, because as I said, the sound imports and plays correctly in the sound browser, just not in game. The problem is getting the sound to play when I run the map, not importing it into Hammer/Source/Portal.