Name
IsChannelPlaying -- check if a channel is playing (V6.1)
Synopsis
playing[, type, id] = IsChannelPlaying(n)
Function
This function checks if the channel specified by n is currently playing and returns True if it is, False otherwise. If the channel is currently playing, IsChannelPlaying() will also return type and id of the object that is currently playing on this channel. This can be #MUSIC, #SAMPLE, or #VIDEO.

Inputs
n
channel index to check; channel indices start from 1 to the number of available channels
Results
playing
True if the channel is playing, False otherwise
type
optional: object type currently playing on this channel; only returned if the channel is currently playing
id
optional: object id currently playing on this channel; only returned if the channel is currently playing

Show TOC