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

#include <CCComAudio.h>

Inheritance diagram for CCComAudio:
CCComponent CCObject CCCopying

Public Member Functions

virtual bool init ()
var init ()
virtual void onEnter ()
virtual void onExit ()
virtual bool isEnabled () const
virtual void setEnabled (bool b)
void end ()
void preloadBackgroundMusic (const char *pszFilePath)
var preloadBackgroundMusic ( var pszFilePath)
void playBackgroundMusic (const char *pszFilePath, bool bLoop)
var playBackgroundMusic ( var pszFilePath, var bLoop)
void playBackgroundMusic (const char *pszFilePath)
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)
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)
var preloadEffect ( var pszFilePath)
void unloadEffect (const char *pszFilePath)
void setFile (const char *pszFilePath)
const char * getFile ()
var getFile ()
void setLoop (bool bLoop)
bool isLoop ()
var isLoop ()
- Public Member Functions inherited from CCComponent
virtual ~CCComponent (void)
virtual void update (float delta)
var update ( var delta)
local update ( local delta)
virtual void serialize (void *r)
local serialize ( local r)
virtual CCNodegetNode ()
virtual void setNode (CCNode *pNode)
local setNode ( local pNode)
const char * getName () const
var getName ()
local getName ()
void setName (const char *pName)
void setOwner (CCNode *pOwner)
CCNodegetOwner () const
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static CCComAudiocreate (void)
var create ()
- Static Public Member Functions inherited from CCComponent
static CCComponentcreate (void)
var create ()
local create ()

Protected Member Functions

 CCComAudio (void)
virtual ~CCComAudio (void)
- Protected Member Functions inherited from CCComponent
 CCComponent (void)

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID
- Protected Attributes inherited from CCComponent
CCNodem_pOwner
std::string m_strName
var m_strName
local m_strName
bool m_bEnabled

Constructor & Destructor Documentation

CCComAudio ( void  )
protected
var CCComAudio (   )
protected
virtual ~CCComAudio ( void  )
protectedvirtual
var ~CCComAudio (   )
protectedvirtual

Member Function Documentation

static CCComAudio* create ( void  )
static
var create (   )
static
void end ( )
var end ( )
float getBackgroundMusicVolume ( )
var getBackgroundMusicVolume ( )
float getEffectsVolume ( )
var getEffectsVolume ( )
const char* getFile ( )
var getFile ( )
virtual bool init ( )
virtual

Reimplemented from CCComponent.

var init ( )
virtual

Reimplemented from CCComponent.

bool isBackgroundMusicPlaying ( )
var isBackgroundMusicPlaying ( )
virtual bool isEnabled ( ) const
virtual

Reimplemented from CCComponent.

var isEnabled ( )
virtual

Reimplemented from CCComponent.

bool isLoop ( )
var isLoop ( )
virtual void onEnter ( )
virtual

Reimplemented from CCComponent.

var onEnter ( )
virtual

Reimplemented from CCComponent.

virtual void onExit ( )
virtual

Reimplemented from CCComponent.

var onExit ( )
virtual

Reimplemented from CCComponent.

void pauseAllEffects ( )
var pauseAllEffects ( )
void pauseBackgroundMusic ( )
var pauseBackgroundMusic ( )
void pauseEffect ( unsigned int  nSoundId)
var pauseEffect ( var  nSoundId)
void playBackgroundMusic ( const char *  pszFilePath,
bool  bLoop 
)
var playBackgroundMusic ( var  pszFilePath,
var  bLoop 
)
void playBackgroundMusic ( const char *  pszFilePath)
var playBackgroundMusic ( var  pszFilePath)
unsigned int playEffect ( const char *  pszFilePath,
bool  bLoop 
)
var playEffect ( var  pszFilePath,
var  bLoop 
)
unsigned int playEffect ( const char *  pszFilePath)
var playEffect ( var  pszFilePath)
void preloadBackgroundMusic ( const char *  pszFilePath)
var preloadBackgroundMusic ( var  pszFilePath)
void preloadEffect ( const char *  pszFilePath)
var preloadEffect ( var  pszFilePath)
void resumeAllEffects ( )
var resumeAllEffects ( )
void resumeBackgroundMusic ( )
var resumeBackgroundMusic ( )
void resumeEffect ( unsigned int  nSoundId)
var resumeEffect ( var  nSoundId)
void rewindBackgroundMusic ( )
var rewindBackgroundMusic ( )
void setBackgroundMusicVolume ( float  volume)
var setBackgroundMusicVolume ( var  volume)
void setEffectsVolume ( float  volume)
var setEffectsVolume ( var  volume)
virtual void setEnabled ( bool  b)
virtual

Reimplemented from CCComponent.

var setEnabled ( var  b)
virtual

Reimplemented from CCComponent.

void setFile ( const char *  pszFilePath)
var setFile ( var  pszFilePath)
void setLoop ( bool  bLoop)
var setLoop ( var  bLoop)
void stopAllEffects ( )
var stopAllEffects ( )
void stopBackgroundMusic ( bool  bReleaseData)
var stopBackgroundMusic ( var  bReleaseData)
void stopBackgroundMusic ( )
var stopBackgroundMusic ( )
void stopEffect ( unsigned int  nSoundId)
var stopEffect ( var  nSoundId)
void unloadEffect ( const char *  pszFilePath)
var unloadEffect ( var  pszFilePath)
bool willPlayBackgroundMusic ( )
var willPlayBackgroundMusic ( )

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