cocos2d-x  2.2.6
 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 ()
virtual void onEnter ()
virtual void onExit ()
virtual bool isEnabled () const
virtual void setEnabled (bool b)
virtual bool serialize (void *r)
void end ()
void preloadBackgroundMusic (const char *pszFilePath)
var preloadBackgroundMusic ( var 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)
var playEffect ( var pszFilePath, var bLoop)
unsigned int playEffect (const char *pszFilePath)
unsigned int playEffect ()
void pauseEffect (unsigned int nSoundId)
var pauseEffect ( var nSoundId)
void pauseAllEffects ()
void resumeEffect (unsigned int nSoundId)
var resumeEffect ( var 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 ()
- Public Member Functions inherited from CCComponent
virtual ~CCComponent (void)
virtual void update (float delta)
local update ( local delta)
const char * getName () const
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 cocos2d::CCObjectcreateInstance (void)
static CCComAudiocreate (void)
var create ()
- Static Public Member Functions inherited from CCComponent
static CCComponentcreate (void)

Static Public Attributes

static
cocos2d::extension::ObjectFactory::TInfo 
Type
var Type

Protected Member Functions

 CCComAudio (void)
virtual ~CCComAudio (void)
var ~CCComAudio ()
- 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
bool m_bEnabled
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

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
static cocos2d::CCObject*
createInstance
( void  )
static
var createInstance (   )
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)
void playBackgroundMusic ( )
var playBackgroundMusic ( )
unsigned int playEffect ( const char *  pszFilePath,
bool  bLoop 
)
var playEffect ( var  pszFilePath,
var  bLoop 
)
unsigned int playEffect ( const char *  pszFilePath)
var playEffect ( var  pszFilePath)
unsigned int playEffect ( )
var playEffect ( )
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 ( )
virtual bool serialize ( void *  r)
virtual

Reimplemented from CCComponent.

var serialize ( var  r)
virtual

Reimplemented from CCComponent.

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 ( )

Member Data Documentation

var Type
static

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