stopchannel.bmx 258 B

12345678910111213141516
  1. Rem
  2. StopChannel example
  3. End Rem
  4. SuperStrict
  5. Local sound:TSound = LoadSound("shoot.wav",True)
  6. Local channel:TChannel = PlaySound(sound)
  7. Print "channel="+channel
  8. Input "Press return key to stop sound"
  9. StopChannel channel
  10. Input "Press return key to quit"