Sound problem

BlitzPlus Forums/BlitzPlus Programming/Sound problem

I don't think its the .wav files. Like I said 'sometimes' the sound is distorted. Maybe I'm doing too many sounds simultaneously.


;******************************************************************************
;* LOAD SOUNDS *
;*******************************************************************************
Global sndGun = LoadSound("gun.wav") ;from other game
Global sndHit = LoadSound("can2.wav")
Global sndCollide = LoadSound("collision.wav")
Global sndbhitwall = LoadSound("bhitwall.wav")
Global sndTankHitWall = LoadSound("wallcol_low.wav")
Global sndExpHuge = LoadSound("exphuge.wav")
Global sndMissilesReady = LoadSound("missilesReady.wav")
Global sndNewTarget = LoadSound("beep1.wav")

Global chnTankNoise
Global sndTankNoise = LoadSound ("tanknoise.wav")
LoopSound sndtanknoise
chntanknoise = PlaySound(sndtanknoise)
PauseChannel(chnTankNoise)

Global chndrill
Global snddrill = LoadSound ("drill.wav")
LoopSound snddrill
chndrill = PlaySound(snddrill)
PauseChannel(chndrill)

;a few snippets below
chn = PlaySound(sndGun)
ChannelVolume (chn,z)

PlaySound sndGun