oh great, now i feel like an idiot!

Blitz3D Forums/Blitz3D Beginners Area/oh great, now i feel like an idiot!

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.

mySoundPlaying=False
mySound=LoadSound("mySample.wav")
LoopSound mySound

While Not KeyHit(1)
	If KeyDown(57); SPACE KEY
		If mySoundPlaying=False
			myChannel=PlaySound(mySound)
			mySoundPlaying=True
		EndIf	
	Else
		StopChannel myChannel
		mySoundPlaying=False
	EndIf
Wend

FreeSound mySound