Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
getVolume | |
isPlaying | |
moveVolume | |
play | |
seekVolume | |
setPaused | |
setVolume | |
setLooping | |
stop |
Returns the current volume of the channel.
function getVolume ( MOAIFmodExChannel self )
self | ( MOAIFmodExChannel ) |
Returns true if channel is playing.
function isPlaying ( MOAIFmodExChannel self )
self | ( MOAIFmodExChannel ) |
Creates a new MOAIAction that will move the volume from it's current value to the value specified.
function moveVolume ( MOAIFmodExChannel self, number target, number delay, number mode )
self | ( MOAIFmodExChannel ) |
target | ( number ) The target volume. |
delay | ( number ) The delay until the action starts. |
mode | ( number ) The interpolation mode for the action. |
Plays the specified sound, looping it if desired.
function play ( MOAIFmodExChannel self, MOAIFmodExSound sound, number loopCount )
self | ( MOAIFmodExChannel ) |
sound | ( MOAIFmodExSound ) The sound to play. |
loopCount | ( number ) Number of loops. |
Creates a new MOAIAction that will move the volume from it's current value to the value specified.
function seekVolume ( MOAIFmodExChannel self, number target, number delay, number mode )
self | ( MOAIFmodExChannel ) |
target | ( number ) The target volume. |
delay | ( number ) The delay until the action starts. |
mode | ( number ) The interpolation mode for the action. |
Immediately sets looping for this channel.
function setLooping ( MOAIFmodExChannel self, boolean looping )
self | ( MOAIFmodExChannel ) |
looping | ( boolean ) True if channel should loop. |
Sets whether this channel is paused and hence does not play any sounds.
function setPaused ( MOAIFmodExChannel self, boolean paused )
self | ( MOAIFmodExChannel ) |
paused | ( boolean ) Whether this channel is paused. |
Immediately sets the volume of this channel.
function setVolume ( MOAIFmodExChannel self, number volume )
self | ( MOAIFmodExChannel ) |
volume | ( number ) The volume of this channel. |
Stops playing the sound on this channel.
function stop ( MOAIFmodExChannel self )
self | ( MOAIFmodExChannel ) |