Sound problem

BlitzMax Forums/BlitzMax Programming/Sound problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Anyone else get fluctuating sound? I think it's the pitch that's changing for me, though I've noticed when other sounds are playing it can also sometimes go tinny sounding too.

'Tap '2' a few times, the sound plays fine. Tap '1' a few times to play the same sound with a random
'rate, then tap '2' again, the pitch fluctuates (it shouldn't?)

Global s:TSound = LoadSound("yoursound.wav")
Graphics 800,600,0
Repeat
	If KeyHit(KEY_1)
		Local chan1:TChannel = PlaySound(s)
		SetChannelRate chan1,Rnd(.8,1.2)
	End If
	
	If KeyHit(KEY_2)
		Local chan2:TChannel = PlaySound(s)
	End If
	
	Flip
	Delay 5
Until KeyHit(KEY_ESCAPE)