Moai SDK
2.0
|
Function List | |
getLength | |
getPosition | |
getVolume | |
getFilename | |
isLooping | |
isPaused | |
isPlaying | |
load | |
moveVolume | |
pause | |
play | |
seekVolume | |
setLooping | |
setLoopPoints | |
setPosition | |
setVolume | |
stop | |
Function List inherited from MOAINode | |
clearAttrLink | |
clearNodeLink | |
forceUpdate | |
getAttr | |
getAttrLink | |
getNodeState | |
moveAttr | |
scheduleUpdate | |
seekAttr | |
setAttrLink | |
setAttr | |
setNodeLink | |
Function List inherited from MOAIInstanceEventSource | |
getListener | |
setListener | |
|
|
Return the file name of the sound.
function getFilename ( MOAIUntzSound self )
MOAIUntzSound | self |
|
Return the duration of the sound.
function getLength ( MOAIUntzSound self )
MOAIUntzSound | self |
|
Return the position of the cursor in the sound.
function getPosition ( MOAIUntzSound self )
MOAIUntzSound | self |
|
Return the volume of the sound.
function getVolume ( MOAIUntzSound self )
MOAIUntzSound | self |
|
Return the looping status if the sound.
function isLooping ( MOAIUntzSound self )
MOAIUntzSound | self |
|
Return the pause status of the sound.
function isPaused ( MOAIUntzSound self )
MOAIUntzSound | self |
|
Return the playing status of the sound.
function isPlaying ( MOAIUntzSound self )
MOAIUntzSound | self |
|
Loads a sound from disk.
function load ( MOAIUntzSound self, string filename )
MOAIUntzSound | self |
string | filename |
|
Animation helper for volume attribute,.
function moveVolume ( MOAITransform self, number vDelta, number length [, number mode ] )
MOAITransform | self |
number | vDelta Delta to be added to v. |
number | length Length of animation in seconds. |
number | mode 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. |
|
|
|
Animation helper for volume attribute,.
function seekVolume ( MOAITransform self, number vGoal, number length [, number mode ] )
MOAITransform | self |
number | vGoal Desired resulting value for v. |
number | length Length of animation in seconds. |
number | mode 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 ] )
MOAIUntzSound | self |
boolean | looping Optional. Default value is 'false.' |
|
Sets the start and end looping positions for the sound.
function setLoopPoints ( MOAIUntzSound self, double startTime, double endTime )
MOAIUntzSound | self |
double | startTime |
double | endTime |
|
Sets the position of the sound cursor.
function setPosition ( MOAIUntzSound self [, boolean position ] )
MOAIUntzSound | self |
boolean | position Optional. Default value is 0. |
|
Sets the volume of the sound.
function setVolume ( MOAIUntzSound self [, boolean volume ] )
MOAIUntzSound | self |
boolean | volume Optional. Default value is 0. |
|
Stops the sound from playing.
function stop ( MOAIUntzSound self )
MOAIUntzSound | self |