Loop sound while keydown

BlitzMax Forums/BlitzMax Beginners Area/Loop sound while keydown

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.

woops, no wonder i'm not getting a responce.... thought i already replyed

I tried this before, and it didnt work, i get the error: Unable to convert something.audio.TSound to TChannel

heres my code at the moment:
		If KeyDown(KEY_UP)
		
			'Afterburner effect
			Local par1:TPartical = New TPartical
				par1.Create(x-(Cos(angle))*10,y-Rand(-2,8)-(Sin(angle))*10,20)
			Local par2:TPartical = New TPartical
				par2.Create(x-(Cos(angle))*10,y-Rand(-2,8)-(Sin(angle))*10,20)
			Local par3:TPartical = New TPartical
				par3.Create(x-(Cos(angle))*10,y-Rand(-2,8)-(Sin(angle))*10,20)
			Local par4:TPartical = New TPartical
				par4.Create(x-(Cos(angle))*10,y-Rand(-2,8)-(Sin(angle))*10,20)
			Local par5:TPartical = New TPartical
				par5.Create(x-(Cos(angle))*10,y-Rand(-2,8)-(Sin(angle))*10,20)
				
			vx:+Cos(angle)*accel
			vy:+Sin(angle)*accel
 
 			If Not ChannelPlaying(afterburn) PlaySound(afterburn)

		Else
			If ChannelPlaying(afterburn) StopChannel(afterburn)
		EndIf


and i'm loading it like this:
Global afterburn:TSound = LoadSound("Media\afterburn.wav",SOUND_LOOP)


thanks for the help :)