getChannelStatus()
Purpose
Find the status of an audio channel
Description
Check to see if audio is being played from a given channel
Syntax
status = getChannelStatus( channel )
Arguments
channel audio channel from 0 to 15
status status of the channel (in use or not)
Example
handle = loadAudio( "David Silvera/jingle_level_complete_03" )
volume = 0.5
pan = 0.5
speed = 1
playAudio( 0, handle, volume, pan, speed, 0 )
start = time()
elapsed = 0
// wait for audio to finish
status = getChannelStatus( 0 )
while status loop
clear()
now = time()
elapsed = now - start
printAt( 0, 0, elapsed )
update()
status = getChannelStatus( 0 )
repeat
printAt( 0, 1, "Finished" )
update()
sleep( 3 )
Associated Commands
audioLength(), loadAudio(), note2Freq(), playAudio(), playNote(), setPan(), setVolume(), startChannel(), stopChannel()