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

#include <CCComAudio.h>

Inheritance diagram for ComAudio:

Public Member Functions

 ComAudio (void)
virtual ~ComAudio (void)
virtual bool init () override
virtual void onEnter () override
virtual void onExit () override
virtual bool isEnabled () const override
virtual void setEnabled (bool b) override
virtual bool serialize (void *r) override
void end ()
void preloadBackgroundMusic (const char *pszFilePath)
void playBackgroundMusic (const char *pszFilePath, bool bLoop)
void playBackgroundMusic (const char *pszFilePath)
void playBackgroundMusic ()
void stopBackgroundMusic (bool bReleaseData)
void stopBackgroundMusic ()
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)
unsigned int playEffect (const char *pszFilePath)
unsigned int playEffect ()
void pauseEffect (unsigned int nSoundId)
void pauseAllEffects ()
void resumeEffect (unsigned int nSoundId)
void resumeAllEffects ()
void stopEffect (unsigned int nSoundId)
void stopAllEffects ()
void preloadEffect (const char *pszFilePath)
void unloadEffect (const char *pszFilePath)
void setFile (const char *pszFilePath)
const char * getFile ()
void setLoop (bool bLoop)
bool isLoop ()

Static Public Member Functions

static ComAudiocreate (void)

Constructor & Destructor Documentation

ComAudio ( void  )
virtual ~ComAudio ( void  )
virtual

Member Function Documentation

static ComAudio* create ( void  )
static
void end ( )
float getBackgroundMusicVolume ( )
float getEffectsVolume ( )
const char* getFile ( )
virtual bool init ( )
overridevirtual
bool isBackgroundMusicPlaying ( )
virtual bool isEnabled ( ) const
overridevirtual
bool isLoop ( )
virtual void onEnter ( )
overridevirtual
virtual void onExit ( )
overridevirtual
void pauseAllEffects ( )
void pauseBackgroundMusic ( )
void pauseEffect ( unsigned int  nSoundId)
void playBackgroundMusic ( const char *  pszFilePath,
bool  bLoop 
)
void playBackgroundMusic ( const char *  pszFilePath)
void playBackgroundMusic ( )
unsigned int playEffect ( const char *  pszFilePath,
bool  bLoop 
)
unsigned int playEffect ( const char *  pszFilePath)
unsigned int playEffect ( )
void preloadBackgroundMusic ( const char *  pszFilePath)
void preloadEffect ( const char *  pszFilePath)
void resumeAllEffects ( )
void resumeBackgroundMusic ( )
void resumeEffect ( unsigned int  nSoundId)
void rewindBackgroundMusic ( )
virtual bool serialize ( void *  r)
overridevirtual
void setBackgroundMusicVolume ( float  volume)
void setEffectsVolume ( float  volume)
virtual void setEnabled ( bool  b)
overridevirtual
void setFile ( const char *  pszFilePath)
void setLoop ( bool  bLoop)
void stopAllEffects ( )
void stopBackgroundMusic ( bool  bReleaseData)
void stopBackgroundMusic ( )
void stopEffect ( unsigned int  nSoundId)
void unloadEffect ( const char *  pszFilePath)
bool willPlayBackgroundMusic ( )

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