help with sound on game

Blitz3D Forums/Blitz3D Beginners Area/help with sound on game

767pilot(Posted 2004) [#1]
http://www.geocities.com/gjpollitt/Shapeshoot.zip

anyone help me with the above I am playing around with

Why when I set the 'max_targets' to a high number, say 10+, does the sound go loud and distorted, gradually reducing as the number of targets reduce.

Any reason why when a target is 'exploding' some of the other targets disappear then reappear?

Thanks


Ross C(Posted 2004) [#2]
I'd use the same channel for your sounds. Play sound. Before you play another sound, be sure and stop the channel, so you don't get the sounds building up :)


Stevie G(Posted 2004) [#3]
Sorry couldn't be arsed wading through your code but it's possible that your using playsound so the default channel is being overwritten each time you play any sound.

Try Changing all your playsounds to ..

NewChannel = PlaySound( MySound) - blitz will allocate the next available sound channel - allowing many sounds - ( up to 32 channels I'm told ) simultaneously.

Maybe I'm barking up the wrong tree - if so apologies.