mirror of https://github.com/axmolengine/axmol.git
26 lines
1011 B
Plaintext
26 lines
1011 B
Plaintext
class SimpleAudioEngine
|
|
{
|
|
static SimpleAudioEngine* getInstance();
|
|
void preloadBackgroundMusic(const char* pszFilePath);
|
|
void playBackgroundMusic(const char* pszFilePath, bool bLoop = false);
|
|
void stopBackgroundMusic(bool bReleaseData = false);
|
|
void pauseBackgroundMusic();
|
|
void resumeBackgroundMusic();
|
|
void rewindBackgroundMusic();
|
|
bool willPlayBackgroundMusic();
|
|
bool isBackgroundMusicPlaying();
|
|
float getBackgroundMusicVolume();
|
|
void setBackgroundMusicVolume(float volume);
|
|
float getEffectsVolume();
|
|
void setEffectsVolume(float volume);
|
|
unsigned int playEffect(const char* pszFilePath, bool bLoop = false);
|
|
void stopEffect(unsigned int nSoundId);
|
|
void preloadEffect(const char* pszFilePath);
|
|
void unloadEffect(const char* pszFilePath);
|
|
void pauseEffect(unsigned int nSoundId);
|
|
void resumeEffect(unsigned int nSoundId);
|
|
void pauseAllEffects();
|
|
void resumeAllEffects();
|
|
void stopAllEffects();
|
|
};
|