startChannel()
Purpose
Start an audio channel
Description
Starts sound being played on the specified audio channel
Syntax
startChannel( channel )
Arguments
channel audio channel from 0 to 15
Example
handle = loadAudio( "David Silvera/music_evil_presence" )
volume = 0.5
pan = 0.5
speed = 1
playAudio( 0, handle, volume, pan, speed, -1 )
loop
clear()
c = controls( 0 )
printAt( 0, 0, "Press A to stop music" )
if c.a then
stopChannel( 0 )
endIf
printAt( 0, 1, "Press B to start music" )
if c.b then
startChannel( 0 )
endIf
update()
repeat
Associated Commands
audioLength(), getChannelStatus(), loadAudio(), note2Freq(), playAudio(), playNote(), setClipper(), setFilter(), setPan(), setVolume(), startChannel(), stopChannel()