Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
getLength | |
getPosition | |
getVolume | |
getFilename | |
isLooping | |
isPaused | |
isPlaying | |
load | |
moveVolume | |
pause | |
play | |
seekVolume | |
setLooping | |
setLoopPoints | |
setPosition | |
setVolume | |
stop |
Return the file name of the sound.
function getFilename ( MOAIUntzSound self )
self | ( MOAIUntzSound ) |
Return the duration of the sound.
function getLength ( MOAIUntzSound self )
self | ( MOAIUntzSound ) |
Return the position of the cursor in the sound.
function getPosition ( MOAIUntzSound self )
self | ( MOAIUntzSound ) |
Return the volume of the sound.
function getVolume ( MOAIUntzSound self )
self | ( MOAIUntzSound ) |
Return the looping status if the sound.
function isLooping ( MOAIUntzSound self )
self | ( MOAIUntzSound ) |
Return the pause status of the sound.
function isPaused ( MOAIUntzSound self )
self | ( MOAIUntzSound ) |
Return the playing status of the sound.
function isPlaying ( MOAIUntzSound self )
self | ( MOAIUntzSound ) |
Loads a sound from disk or from a buffer.
function load ( MOAIUntzSound self, string filename [, boolean loadIntoMemory ] )
self | ( MOAIUntzSound ) |
filename | ( string ) |
loadIntoMemory | ( boolean ) Optional. Default value is true |
function load ( MOAIUntzSound self, MOAIUntzSampleBuffer data )
self | ( MOAIUntzSound ) |
data | ( MOAIUntzSampleBuffer ) |
Animation helper for volume attribute,.
function moveVolume ( MOAITransform self, number vDelta, number length [, number mode ] )
self | ( MOAITransform ) |
vDelta | ( number ) Delta to be added to v. |
length | ( number ) Length of animation in seconds. |
mode | ( number ) Optional. The ease mode. One of MOAIEaseType.EASE_IN, MOAIEaseType.EASE_OUT, MOAIEaseType.FLAT MOAIEaseType.LINEAR, MOAIEaseType.SMOOTH, MOAIEaseType.SOFT_EASE_IN, MOAIEaseType.SOFT_EASE_OUT, MOAIEaseType.SOFT_SMOOTH. Defaults to MOAIEaseType.SMOOTH. |
Pause the sound.
function pause ( MOAIUntzSound self )
self | ( MOAIUntzSound ) |
Play the sound.
function play ( MOAIUntzSound self )
self | ( MOAIUntzSound ) |
Animation helper for volume attribute,.
function seekVolume ( MOAITransform self, number vGoal, number length [, number mode ] )
self | ( MOAITransform ) |
vGoal | ( number ) Desired resulting value for v. |
length | ( number ) Length of animation in seconds. |
mode | ( number ) Optional. The ease mode. One of MOAIEaseType.EASE_IN, MOAIEaseType.EASE_OUT, MOAIEaseType.FLAT MOAIEaseType.LINEAR, MOAIEaseType.SMOOTH, MOAIEaseType.SOFT_EASE_IN, MOAIEaseType.SOFT_EASE_OUT, MOAIEaseType.SOFT_SMOOTH. Defaults to MOAIEaseType.SMOOTH. |
Set or clear the looping status of the sound.
function setLooping ( MOAIUntzSound self [, boolean looping ] )
self | ( MOAIUntzSound ) |
looping | ( boolean ) Optional. Default value is 'false.' |
Sets the start and end looping positions for the sound.
function setLoopPoints ( MOAIUntzSound self, number startTime, number endTime )
self | ( MOAIUntzSound ) |
startTime | ( number ) |
endTime | ( number ) |
Sets the position of the sound cursor.
function setPosition ( MOAIUntzSound self [, number position ] )
self | ( MOAIUntzSound ) |
position | ( number ) Optional. Default value is 0. |
Sets the volume of the sound.
function setVolume ( MOAIUntzSound self [, number volume ] )
self | ( MOAIUntzSound ) |
volume | ( number ) Optional. Default value is 0. |
Stops the sound from playing.
function stop ( MOAIUntzSound self )
self | ( MOAIUntzSound ) |