In Game Sound Problem
[SAS]==Dirty_Harry
03-25-2007, 06:52 AM
Does anyone know if they have changed the way in game sounds work.
I have a problem where I cant get an "ambient generic" .wav file to play in game.
The sound can be played within the Hammer editor but doesn't play when triggered in game. The file is located in the same place as another "ambient generic" that I have in the map and that one plays fine. I have tried to trigger it when a bomb explodes and when a capture area is captured but what ever I try it wont play.
Any help would be appreciated.
[looplab] b@d
03-25-2007, 07:09 AM
sound have to be mono, 11khz or 22 khz and 8 or 16 bit as far as i know.
if yours are maybe 44 khz or stereo or 24 bits the engine isnt able to play it
ultranew_b
03-25-2007, 09:31 AM
You may need to add to add cue points:
http://www.editlife.net/tutorial.php?tutid=44
:)
[SAS]==Dirty_Harry
03-25-2007, 03:22 PM
Thanks for that Ultranew_b.
Having read it I understood it to be that the "add cue points" was used if you wanted the sound to loop where as I want this sound to play once on the capping of a flag.
Everything else in the tutorial matches what I have done but still it won't play in game :(
I have the .wav file in the sound folder and it plays through Hammer when you browse to it but not in game. I also have a siren that plays on the planting of a bomb and that is in the same folder and all the properties are the same and that sound plays fine but this one for some reason won't :(
[SAS]==Colster==
03-25-2007, 05:30 PM
Check the properties of the sound file that works, see if they match, if not let me know and i'll convert it
dod_eagles needs Mr Burton!!! :D
LionelQueripel
03-26-2007, 07:01 AM
You could always make a copy of the file that works, rename it the same as the file that doesn't and then run a test compile. If the new sound plays, you will know for sure that the problem lies with the sound file and not in anything you have programmed.
[SAS]==Dirty_Harry
03-26-2007, 11:00 AM
Well thanks for your suggestion LionelQueripel I renamed the file that wasn't working the same as the file that was working and it played fine.
Turned out that it didn't like the name of the file as it was all due to a _ being in the name, as soon as I renamed it without the _ it played fine.
Thanks for the help guys it now means I can make a final release of dod_eagles.
Day of Defeat Forum Archive created by
Neil Jedrzejewski.
This in an partial archive of the old Day of Defeat forums orignally hosted by
Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.