Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / sound not loading and game crashing? :S

Author
Message
Wikaman1
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 10th Mar 2011 20:21
ok so basically I'm loading in a sound for the tank gun shot. The sound is definitely in the right place with all the other sounds, and the code is correct...but it's not loaded and now crashes every time I exit (doesn't without the line that loads the sound).

I tried using dbSoundExist and that returns 0.

the sound I'm trying to load is tankblast.wav, here's the main.cpp code



can anyone help?

thanks
Wikaman1
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 10th Mar 2011 23:31
turns out I had to change the audio file from mono to stereo, hope this saves someone the hours of messing around it took me to work out

Login to post a reply

Server time is: 2024-11-19 12:16:54
Your offset time is: 2024-11-19 12:16:54