|
Moai SDK
1.5 revision 1 (MoaiEdition)
|
Inherits MOAILuaObject.
Function List | |
| load | |
| loadBGM | |
| loadSFX | |
| release | |
Loads the specified sound from file, or from a MOAIDataBuffer.
function load ( MOAIFmodExSound self, string filename, boolean streaming, boolean async )
| self | ( MOAIFmodExSound ) |
| filename | ( string ) The path to the sound to load from file. |
| streaming | ( boolean ) Whether the sound should be streamed from the data source, rather than preloaded. |
| async | ( boolean ) Whether the sound file should be loaded asynchronously. |
function load ( MOAIFmodExSound self, MOAIDataBuffer data, boolean streaming )
| self | ( MOAIFmodExSound ) |
| data | ( MOAIDataBuffer ) The MOAIDataBuffer that is storing sound data. You must either provide a string or MOAIDataBuffer, but not both. |
| streaming | ( boolean ) Whether the sound should be streamed from the data source, rather than preloaded. |
Loads the specified BGM sound from file, or from a MOAIDataBuffer.
function loadBGM ( MOAIFmodExSound self, string filename )
| self | ( MOAIFmodExSound ) |
| filename | ( string ) The path to the sound to load from file. |
function loadBGM ( MOAIFmodExSound self, MOAIDataBuffer data )
| self | ( MOAIFmodExSound ) |
| data | ( MOAIDataBuffer ) The MOAIDataBuffer that is storing sound data. |
Loads the specified SFX sound from file, or from a MOAIDataBuffer.
function loadSFX ( MOAIFmodExSound self, string filename )
| self | ( MOAIFmodExSound ) |
| filename | ( string ) The path to the sound to load from file. |
function loadSFX ( MOAIFmodExSound self, MOAIDataBuffer data )
| self | ( MOAIFmodExSound ) |
| data | ( MOAIDataBuffer ) The MOAIDataBuffer that is storing sound data. |
Releases the sound data from memory.
function release ( MOAIFmodExSound self )
| self | ( MOAIFmodExSound ) |