Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIUntzSound Class Reference
Inheritance diagram for MOAIUntzSound:
MOAINode MOAIInstanceEventSource MOAIEventSource

List of all members.

Function List

  getLength
  getPosition
  getVolume
  getFilename
  isLooping
  isPaused
  isPlaying
  load
  moveVolume
  pause
  play
  seekVolume
  setLooping
  setLoopPoints
  setPosition
  setVolume
  stop

Function Documentation

Return the file name of the sound.


function getFilename ( MOAIUntzSound self )
Parameters:
self ( MOAIUntzSound )
Returns:
filename ( string )

Return the duration of the sound.


function getLength ( MOAIUntzSound self )
Parameters:
self ( MOAIUntzSound )
Returns:
length ( number )

Return the position of the cursor in the sound.


function getPosition ( MOAIUntzSound self )
Parameters:
self ( MOAIUntzSound )
Returns:
position ( number )

Return the volume of the sound.


function getVolume ( MOAIUntzSound self )
Parameters:
self ( MOAIUntzSound )
Returns:
volume ( number )

Return the looping status if the sound.


function isLooping ( MOAIUntzSound self )
Parameters:
self ( MOAIUntzSound )
Returns:
looping ( boolean )

Return the pause status of the sound.


function isPaused ( MOAIUntzSound self )
Parameters:
self ( MOAIUntzSound )
Returns:
paused ( boolean )

Return the playing status of the sound.


function isPlaying ( MOAIUntzSound self )
Parameters:
self ( MOAIUntzSound )
Returns:
playing ( boolean )

Loads a sound from disk or from a buffer.


function load ( MOAIUntzSound self, string filename [, boolean loadIntoMemory ] )
Parameters:
self ( MOAIUntzSound )
filename ( string )
loadIntoMemory ( boolean ) Optional. Default value is true
Returns:
nil
Note:

function load ( MOAIUntzSound self, MOAIUntzSampleBuffer data )
Parameters:
self ( MOAIUntzSound )
data ( MOAIUntzSampleBuffer )
Returns:
nil
Note:

Animation helper for volume attribute,.


function moveVolume ( MOAITransform self, number vDelta, number length [, number mode ] )
Parameters:
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.
Returns:
easeDriver ( MOAIEaseDriver )

Pause the sound.


function pause ( MOAIUntzSound self )
Parameters:
self ( MOAIUntzSound )
Returns:
nil

Play the sound.


function play ( MOAIUntzSound self )
Parameters:
self ( MOAIUntzSound )
Returns:
nil

Animation helper for volume attribute,.


function seekVolume ( MOAITransform self, number vGoal, number length [, number mode ] )
Parameters:
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.
Returns:
easeDriver ( MOAIEaseDriver )

Set or clear the looping status of the sound.


function setLooping ( MOAIUntzSound self [, boolean looping ] )
Parameters:
self ( MOAIUntzSound )
looping ( boolean ) Optional. Default value is 'false.'
Returns:
nil

Sets the start and end looping positions for the sound.


function setLoopPoints ( MOAIUntzSound self, number startTime, number endTime )
Parameters:
self ( MOAIUntzSound )
startTime ( number )
endTime ( number )
Returns:
nil

Sets the position of the sound cursor.


function setPosition ( MOAIUntzSound self [, number position ] )
Parameters:
self ( MOAIUntzSound )
position ( number ) Optional. Default value is 0.
Returns:
nil

Sets the volume of the sound.


function setVolume ( MOAIUntzSound self [, number volume ] )
Parameters:
self ( MOAIUntzSound )
volume ( number ) Optional. Default value is 0.
Returns:
nil

Stops the sound from playing.


function stop ( MOAIUntzSound self )
Parameters:
self ( MOAIUntzSound )
Returns:
nil