Module flower.audio.UntzSoundMgr

This is UntzSoundMgr class using MOAIUntz.

Functions

UntzSoundMgr:init (sampleRate, numFrames) Constructor.
UntzSoundMgr:loadSound (filePath) Load the MOAIUntzSound.
UntzSoundMgr:getSound (filePath) Return the MOAIUntzSound cached.
UntzSoundMgr:release (filePath) Release the MOAIUntzSound.
UntzSoundMgr:play (sound, volume, looping) Play the sound.
UntzSoundMgr:pause (sound) Pause the sound.
UntzSoundMgr:stop (sound) Stop the sound.
UntzSoundMgr:setVolume (volume) Set the system level volume.
UntzSoundMgr:getVolume () Return the system level volume.

Fields

SAMPLE_RATE sampleRate
NUM_FRAMES numFrames


Functions

UntzSoundMgr:init (sampleRate, numFrames)
Constructor.

Parameters:

  • sampleRate sample rate
  • numFrames num frames
UntzSoundMgr:loadSound (filePath)
Load the MOAIUntzSound.

Parameters:

  • filePath file path.

Returns:

    sound
UntzSoundMgr:getSound (filePath)
Return the MOAIUntzSound cached.

Parameters:

  • filePath file path.

Returns:

    sound
UntzSoundMgr:release (filePath)
Release the MOAIUntzSound.

Parameters:

  • filePath file path.

Returns:

    cached sound.
UntzSoundMgr:play (sound, volume, looping)
Play the sound.

Parameters:

  • sound file path or object.
  • volume (Optional)volume. Default value is 1.
  • looping (Optional)looping flag. Default value is 'false'.

Returns:

    Sound object
UntzSoundMgr:pause (sound)
Pause the sound.

Parameters:

  • sound file path or object.
UntzSoundMgr:stop (sound)
Stop the sound.

Parameters:

  • sound file path or object.
UntzSoundMgr:setVolume (volume)
Set the system level volume.

Parameters:

  • volume
UntzSoundMgr:getVolume ()
Return the system level volume.

Returns:

    volume

Fields

SAMPLE_RATE
sampleRate
NUM_FRAMES
numFrames
generated by LDoc 1.3