cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Audio Class Reference

#include <Audio.h>

Public Member Functions

 Audio ()
void Initialize ()
void CreateResources ()
void ReleaseResources ()
void Start ()
void Render ()
void SetEngineExperiencedCriticalError ()
bool HasEngineExperiencedCriticalError ()
void PlayBackgroundMusic (const char *pszFilePath, bool bLoop)
void StopBackgroundMusic (bool bReleaseData)
void PauseBackgroundMusic ()
void ResumeBackgroundMusic ()
void RewindBackgroundMusic ()
bool IsBackgroundMusicPlaying ()
void SetBackgroundVolume (float volume)
float GetBackgroundVolume ()
void SetSoundEffectVolume (float volume)
float GetSoundEffectVolume ()
void PlaySoundEffect (const char *pszFilePath, bool bLoop, unsigned int &sound, bool isMusic=false)
void PlaySoundEffect (unsigned int sound)
bool IsSoundEffectStarted (unsigned int sound)
void StopSoundEffect (unsigned int sound)
void PauseSoundEffect (unsigned int sound)
void ResumeSoundEffect (unsigned int sound)
void RewindSoundEffect (unsigned int sound)
void PauseAllSoundEffects ()
void ResumeAllSoundEffects ()
void StopAllSoundEffects (bool bReleaseData)
void PreloadSoundEffect (const char *pszFilePath, bool isMusic=false)
void UnloadSoundEffect (const char *pszFilePath)
void UnloadSoundEffect (unsigned int sound)
 Audio ()
void Initialize ()
void CreateResources ()
void ReleaseResources ()
void Start ()
void Render ()
void SetEngineExperiencedCriticalError ()
bool HasEngineExperiencedCriticalError ()
void PlayBackgroundMusic (const char *pszFilePath, bool bLoop)
void StopBackgroundMusic (bool bReleaseData)
void PauseBackgroundMusic ()
void ResumeBackgroundMusic ()
void RewindBackgroundMusic ()
bool IsBackgroundMusicPlaying ()
void SetBackgroundVolume (float volume)
float GetBackgroundVolume ()
void SetSoundEffectVolume (float volume)
float GetSoundEffectVolume ()
void PlaySoundEffect (const char *pszFilePath, bool bLoop, unsigned int &sound, bool isMusic=false)
void PlaySoundEffect (unsigned int sound)
bool IsSoundEffectStarted (unsigned int sound)
void StopSoundEffect (unsigned int sound)
void PauseSoundEffect (unsigned int sound)
void ResumeSoundEffect (unsigned int sound)
void RewindSoundEffect (unsigned int sound)
void PauseAllSoundEffects ()
void ResumeAllSoundEffects ()
void StopAllSoundEffects (bool bReleaseData)
void PreloadSoundEffect (const char *pszFilePath, bool isMusic=false)
void UnloadSoundEffect (const char *pszFilePath)
void UnloadSoundEffect (unsigned int sound)

Constructor & Destructor Documentation

Audio ( )
Audio ( )

Member Function Documentation

void CreateResources ( )
void CreateResources ( )
float GetBackgroundVolume ( )
float GetBackgroundVolume ( )
float GetSoundEffectVolume ( )
float GetSoundEffectVolume ( )
bool
HasEngineExperiencedCriticalError
( )
inline
bool
HasEngineExperiencedCriticalError
( )
inline
void Initialize ( )
void Initialize ( )
bool IsBackgroundMusicPlaying ( )
bool IsBackgroundMusicPlaying ( )
bool IsSoundEffectStarted ( unsigned int  sound)
bool IsSoundEffectStarted ( unsigned int  sound)
void PauseAllSoundEffects ( )
void PauseAllSoundEffects ( )
void PauseBackgroundMusic ( )
void PauseBackgroundMusic ( )
void PauseSoundEffect ( unsigned int  sound)
void PauseSoundEffect ( unsigned int  sound)
void PlayBackgroundMusic ( const char *  pszFilePath,
bool  bLoop 
)
void PlayBackgroundMusic ( const char *  pszFilePath,
bool  bLoop 
)
void PlaySoundEffect ( const char *  pszFilePath,
bool  bLoop,
unsigned int &  sound,
bool  isMusic = false 
)
void PlaySoundEffect ( const char *  pszFilePath,
bool  bLoop,
unsigned int &  sound,
bool  isMusic = false 
)
void PlaySoundEffect ( unsigned int  sound)
void PlaySoundEffect ( unsigned int  sound)
void PreloadSoundEffect ( const char *  pszFilePath,
bool  isMusic = false 
)
void PreloadSoundEffect ( const char *  pszFilePath,
bool  isMusic = false 
)
void ReleaseResources ( )
void ReleaseResources ( )
void Render ( )
void Render ( )
void ResumeAllSoundEffects ( )
void ResumeAllSoundEffects ( )
void ResumeBackgroundMusic ( )
void ResumeBackgroundMusic ( )
void ResumeSoundEffect ( unsigned int  sound)
void ResumeSoundEffect ( unsigned int  sound)
void RewindBackgroundMusic ( )
void RewindBackgroundMusic ( )
void RewindSoundEffect ( unsigned int  sound)
void RewindSoundEffect ( unsigned int  sound)
void SetBackgroundVolume ( float  volume)
void SetBackgroundVolume ( float  volume)
void
SetEngineExperiencedCriticalError
( )
inline
void
SetEngineExperiencedCriticalError
( )
inline
void SetSoundEffectVolume ( float  volume)
void SetSoundEffectVolume ( float  volume)
void Start ( )
void Start ( )
void StopAllSoundEffects ( bool  bReleaseData)
void StopAllSoundEffects ( bool  bReleaseData)
void StopBackgroundMusic ( bool  bReleaseData)
void StopBackgroundMusic ( bool  bReleaseData)
void StopSoundEffect ( unsigned int  sound)
void StopSoundEffect ( unsigned int  sound)
void UnloadSoundEffect ( const char *  pszFilePath)
void UnloadSoundEffect ( const char *  pszFilePath)
void UnloadSoundEffect ( unsigned int  sound)
void UnloadSoundEffect ( unsigned int  sound)

The documentation for this class was generated from the following file: