Air Raid Sound Not Working

Ambient sounds, game effects and music creation.

Air Raid Sound Not Working

Postby TheMiede on Fri May 22, 2009 3:44 pm

I am trying to add an air raid siren to my map, however, the sound doesnt want to play when I call the ambient generic via PlaySound. I feel the reason is because the sound isnt of the proper format.

So what format is required in order to have it play?

Current it is PCM signed 16 bit mono (edited in GoldWave)
TheMiede
1337 p0st3r
1337 p0st3r
 
Joined: Wed Apr 20, 2005 4:11 am

Re: Air Raid Sound Not Working

Postby TheMiede on Sat May 23, 2009 11:46 am

Wow no one? Can someone move this to level design help? Maybe it will get more views there.
TheMiede
1337 p0st3r
1337 p0st3r
 
Joined: Wed Apr 20, 2005 4:11 am

Re: Air Raid Sound Not Working

Postby tonystockert on Fri May 29, 2009 4:37 am

did you add cue points in goldwave? may be why it isn't playing if it's set to loop.

this shows you how:
http://developer.valvesoftware.com/wiki/Looping_a_Sound

also, sounds need to be set at 44100 bit rate or less or they wont work.

is there any error message in red in your console when you load the map?
the island told me.
User avatar
tonystockert
Regular
Regular
 
Joined: Fri Sep 26, 2008 10:18 pm
Location: Los Angeles CA, USA

Re: Air Raid Sound Not Working

Postby TheMiede on Fri May 29, 2009 5:58 am

tonystockert wrote:did you add cue points in goldwave? may be why it isn't playing if it's set to loop.

this shows you how:
http://developer.valvesoftware.com/wiki/Looping_a_Sound

also, sounds need to be set at 44100 bit rate or less or they wont work.

is there any error message in red in your console when you load the map?

Yeah i added cue points using goldwave. I think I got an answer for another forum, so I am gunna try that out.
TheMiede
1337 p0st3r
1337 p0st3r
 
Joined: Wed Apr 20, 2005 4:11 am

Re: Air Raid Sound Not Working

Postby tonystockert on Fri May 29, 2009 11:42 pm

and you made sure of the bitrate and that there's no errors in the console?
the island told me.
User avatar
tonystockert
Regular
Regular
 
Joined: Fri Sep 26, 2008 10:18 pm
Location: Los Angeles CA, USA

Re: Air Raid Sound Not Working

Postby TheMiede on Sat May 30, 2009 2:43 am

Yeah I got an invalid sample rate. This is the advice I am gunna try out.

"Use sndrec32.exe (comes with Windows). Change the sample rate to 22 kHz, 16-bit, mono. If it's currently in 8 kHz, try changing it up to 11 kHz."
TheMiede
1337 p0st3r
1337 p0st3r
 
Joined: Wed Apr 20, 2005 4:11 am

Re: Air Raid Sound Not Working

Postby tonystockert on Tue Jun 02, 2009 7:19 am

nooo... thats crap. don't go that low.

the sample rate changer in goldwave works fine. change it to 44100Hz (44.1kH), that's the max and ideal setting. i save all mine as 16 bit stereo at 44.1 and they work like a charm.
the island told me.
User avatar
tonystockert
Regular
Regular
 
Joined: Fri Sep 26, 2008 10:18 pm
Location: Los Angeles CA, USA

Return to Audio

Who is online

Users browsing this forum: No registered users