#include <FmodAudioPlayer.h>
Public Member Functions | |
FmodAudioPlayer () | |
virtual | ~FmodAudioPlayer () |
local | ~FmodAudioPlayer () |
virtual void | close () |
local | close () |
virtual void | preloadBackgroundMusic (const char *pszFilePath) |
Preload background music. More... | |
local | preloadBackgroundMusic ( local pszFilePath) |
Preload background music. More... | |
virtual void | playBackgroundMusic (const char *pszFilePath, bool bLoop) |
Play background music. More... | |
var | playBackgroundMusic ( var pszFilePath, var bLoop) |
Play background music. More... | |
local | playBackgroundMusic ( local pszFilePath, local bLoop) |
Play background music. More... | |
virtual void | stopBackgroundMusic (bool bReleaseData) |
Stop playing background music. More... | |
virtual void | pauseBackgroundMusic () |
Pause playing background music. More... | |
virtual void | resumeBackgroundMusic () |
Resume playing background music. More... | |
virtual void | rewindBackgroundMusic () |
Rewind playing background music. More... | |
virtual bool | willPlayBackgroundMusic () |
virtual bool | isBackgroundMusicPlaying () |
Whether the background music is playing. More... | |
var | isBackgroundMusicPlaying () |
Whether the background music is playing. More... | |
local | isBackgroundMusicPlaying () |
Whether the background music is playing. More... | |
virtual float | getBackgroundMusicVolume () |
The volume of the background music max value is 1.0,the min value is 0.0. More... | |
virtual void | setBackgroundMusicVolume (float volume) |
set the volume of background music More... | |
local | setBackgroundMusicVolume ( local volume) |
set the volume of background music More... | |
virtual float | getEffectsVolume () |
The volume of the effects max value is 1.0,the min value is 0.0. More... | |
virtual void | setEffectsVolume (float volume) |
set the volume of sound effecs More... | |
var | setEffectsVolume ( var volume) |
set the volume of sound effecs More... | |
local | setEffectsVolume ( local volume) |
set the volume of sound effecs More... | |
virtual unsigned int | playEffect (const char *pszFilePath, bool bLoop, float pitch, float pan, float gain) |
Play sound effect. More... | |
virtual void | stopEffect (unsigned int nSoundId) |
Stop playing sound effect. More... | |
local | stopEffect ( local nSoundId) |
Stop playing sound effect. More... | |
virtual void | preloadEffect (const char *pszFilePath) |
preload a compressed audio file More... | |
local | preloadEffect ( local pszFilePath) |
preload a compressed audio file More... | |
virtual void | unloadEffect (const char *pszFilePath) |
unload the preloaded effect from internal buffer More... | |
virtual void | pauseEffect (unsigned int uSoundId) |
pause an effect identified by sound id More... | |
local | pauseEffect ( local uSoundId) |
pause an effect identified by sound id More... | |
virtual void | pauseAllEffects () |
pause all playing effects More... | |
virtual void | resumeEffect (unsigned int uSoundId) |
resume an effect identified by sound id More... | |
local | resumeEffect ( local uSoundId) |
resume an effect identified by sound id More... | |
virtual void | resumeAllEffects () |
resume a effect identified by sound id More... | |
virtual void | stopAllEffects () |
stop all playing effects More... | |
Static Public Member Functions | |
static FmodAudioPlayer * | sharedPlayer () |
local | sharedPlayer () |
FmodAudioPlayer | ( | ) |
var FmodAudioPlayer | ( | ) |
local FmodAudioPlayer | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements AudioPlayer.
|
virtual |
Implements AudioPlayer.
|
virtual |
Implements AudioPlayer.
|
virtual |
The volume of the background music max value is 1.0,the min value is 0.0.
Implements AudioPlayer.
|
virtual |
The volume of the background music max value is 1.0,the min value is 0.0.
Implements AudioPlayer.
|
virtual |
The volume of the background music max value is 1.0,the min value is 0.0.
Implements AudioPlayer.
|
virtual |
The volume of the effects max value is 1.0,the min value is 0.0.
Implements AudioPlayer.
|
virtual |
The volume of the effects max value is 1.0,the min value is 0.0.
Implements AudioPlayer.
|
virtual |
The volume of the effects max value is 1.0,the min value is 0.0.
Implements AudioPlayer.
|
virtual |
Whether the background music is playing.
Implements AudioPlayer.
|
virtual |
Whether the background music is playing.
Implements AudioPlayer.
|
virtual |
Whether the background music is playing.
Implements AudioPlayer.
|
virtual |
pause all playing effects
Implements AudioPlayer.
|
virtual |
pause all playing effects
Implements AudioPlayer.
|
virtual |
pause all playing effects
Implements AudioPlayer.
|
virtual |
Pause playing background music.
Implements AudioPlayer.
|
virtual |
Pause playing background music.
Implements AudioPlayer.
|
virtual |
Pause playing background music.
Implements AudioPlayer.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Play background music.
pszFilePath | The path of the background music file,or the FileName of T_SoundResInfo |
bLoop | Whether the background music loop or not |
Implements AudioPlayer.
|
virtual |
Play background music.
pszFilePath | The path of the background music file,or the FileName of T_SoundResInfo |
bLoop | Whether the background music loop or not |
Implements AudioPlayer.
|
virtual |
Play background music.
pszFilePath | The path of the background music file,or the FileName of T_SoundResInfo |
bLoop | Whether the background music loop or not |
Implements AudioPlayer.
|
virtual |
Play sound effect.
pszFilePath | The path of the effect file,or the FileName of T_SoundResInfo Whether to loop the effect playing, default value is false |
Implements AudioPlayer.
|
virtual |
Play sound effect.
pszFilePath | The path of the effect file,or the FileName of T_SoundResInfo Whether to loop the effect playing, default value is false |
Implements AudioPlayer.
|
virtual |
Play sound effect.
pszFilePath | The path of the effect file,or the FileName of T_SoundResInfo Whether to loop the effect playing, default value is false |
Implements AudioPlayer.
|
virtual |
Preload background music.
pszFilePath | The path of the background music file,or the FileName of T_SoundResInfo |
Implements AudioPlayer.
|
virtual |
Preload background music.
pszFilePath | The path of the background music file,or the FileName of T_SoundResInfo |
Implements AudioPlayer.
|
virtual |
Preload background music.
pszFilePath | The path of the background music file,or the FileName of T_SoundResInfo |
Implements AudioPlayer.
|
virtual |
preload a compressed audio file
the compressed audio will be decode to wave, then write into an internal buffer in SimpleaudioEngine
Implements AudioPlayer.
|
virtual |
preload a compressed audio file
the compressed audio will be decode to wave, then write into an internal buffer in SimpleaudioEngine
Implements AudioPlayer.
|
virtual |
preload a compressed audio file
the compressed audio will be decode to wave, then write into an internal buffer in SimpleaudioEngine
Implements AudioPlayer.
|
virtual |
resume a effect identified by sound id
Implements AudioPlayer.
|
virtual |
resume a effect identified by sound id
Implements AudioPlayer.
|
virtual |
resume a effect identified by sound id
Implements AudioPlayer.
|
virtual |
Resume playing background music.
Implements AudioPlayer.
|
virtual |
Resume playing background music.
Implements AudioPlayer.
|
virtual |
Resume playing background music.
Implements AudioPlayer.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Rewind playing background music.
Implements AudioPlayer.
|
virtual |
Rewind playing background music.
Implements AudioPlayer.
|
virtual |
Rewind playing background music.
Implements AudioPlayer.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
static |
|
static |
|
static |
|
virtual |
stop all playing effects
Implements AudioPlayer.
|
virtual |
stop all playing effects
Implements AudioPlayer.
|
virtual |
stop all playing effects
Implements AudioPlayer.
|
virtual |
Stop playing background music.
bReleaseData | If release the background music data or not.As default value is false |
Implements AudioPlayer.
|
virtual |
Stop playing background music.
bReleaseData | If release the background music data or not.As default value is false |
Implements AudioPlayer.
|
virtual |
Stop playing background music.
bReleaseData | If release the background music data or not.As default value is false |
Implements AudioPlayer.
|
virtual |
Stop playing sound effect.
nSoundId | The return value of function playEffect |
Implements AudioPlayer.
|
virtual |
Stop playing sound effect.
nSoundId | The return value of function playEffect |
Implements AudioPlayer.
|
virtual |
Stop playing sound effect.
nSoundId | The return value of function playEffect |
Implements AudioPlayer.
|
virtual |
unload the preloaded effect from internal buffer
[in] | pszFilePath | The path of the effect file,or the FileName of T_SoundResInfo |
Implements AudioPlayer.
|
virtual |
unload the preloaded effect from internal buffer
[in] | pszFilePath | The path of the effect file,or the FileName of T_SoundResInfo |
Implements AudioPlayer.
|
virtual |
unload the preloaded effect from internal buffer
[in] | pszFilePath | The path of the effect file,or the FileName of T_SoundResInfo |
Implements AudioPlayer.
|
virtual |
Implements AudioPlayer.
|
virtual |
Implements AudioPlayer.
|
virtual |
Implements AudioPlayer.