func_audio_channelplaying.rst 787 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .. _func_audio_channelplaying:
  2. ==============
  3. ChannelPlaying
  4. ==============
  5. ChannelPlaying -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. ChannelPlaying( channel:TChannel )
  10. Determine whether an audio channel is playing
  11. #ChannelPlaying will return #False if either the channel has been paused using #PauseChannel,
  12. or stopped using #StopChannel.
  13. Parameters
  14. ==========
  15. Return Values
  16. =============
  17. #True if @channel is currently playing
  18. Examples
  19. ========
  20. .. code-block:: blitzmax
  21. ' channelplaying.bmx
  22. sound = LoadSound ("shoot.wav")
  23. Input "Hit return to begin channelplaying test, use ctrl-C to exit"
  24. channel=playsound (sound)
  25. while true
  26. print "ChannelPlaying(channel)="+ChannelPlaying(channel)
  27. wend
  28. See Also
  29. ========