This seems to be OK and doesn't use StopChannel and goes beyond 256. Am I missing something?
<edit> on 1.24. In fact your code doesn't seem to fail on that level.
Strict EnableOpenALAudio() SetAudioDriver("OpenAL Generic Software") 'comment this out for no crash 'Global mychannel:TChannel=AllocChannel() Local sound:TSound = LoadSound("test.wav") Graphics 400,300,0 Local counter:Int = 0 Local mychannel:TChannel While Not KeyHit(KEY_ESCAPE) Cls mychannel=AllocChannel() PlaySound sound , mychannel DrawText counter , 0 , 0 DrawText GCMemAlloced(),0,100 counter:+ 1 Flip If counter >300 End Wend
<edit> on 1.24. In fact your code doesn't seem to fail on that level.