Module flower.audio.UntzSoundMgr
This is UntzSoundMgr class using MOAIUntz.
Functions
-
UntzSoundMgr:init (sampleRate, numFrames)
-
Constructor.
Parameters:
- sampleRate
sample rate
- numFrames
num frames
-
UntzSoundMgr:loadSound (filePath)
-
Load the MOAIUntzSound.
Parameters:
Returns:
sound
-
UntzSoundMgr:getSound (filePath)
-
Return the MOAIUntzSound cached.
Parameters:
Returns:
sound
-
UntzSoundMgr:release (filePath)
-
Release the MOAIUntzSound.
Parameters:
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:
-
UntzSoundMgr:getVolume ()
-
Return the system level volume.
Returns:
volume
Fields
-
SAMPLE_RATE
-
sampleRate
-
NUM_FRAMES
-
numFrames