| cocos2d-x 3.0 | 
   
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 成员函数 | 静态 Public 成员函数 | 静态 Public 属性 | Protected 成员函数 | 所有成员列表
ComAudio类 参考
#include 
类 ComAudio 继承关系图:
 
  
| ## Public 成员函数 | |
| virtual bool | init () override | 
| virtual void | onEnter () override | 
| NA NA 更多… | |
| virtual void | onExit () override | 
| NA NA 更多… | |
| 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 () | 
  Public 成员函数 继承自 Component | |
| virtual | ~Component (void) | 
| NA NA 更多… | |
| virtual void | update (float delta) | 
| const std::string & | getName () const | 
| void | setName (const std::string &name) | 
| void | setOwner (Node pOwner) | 
| Node | getOwner () const | 
  Public 成员函数 继承自 Ref | |
| void | retain () | 
| 保留所有权. 更多… | |
| void | release () | 
| 立即释放所有权. 更多… | |
| Ref * | autorelease () | 
| 自动释放所有权在不久的将来. 更多… | |
| unsigned int | getReferenceCount () const | 
| 返回Ref对象当前的引用计数. 更多… | |
| virtual | ~Ref () | 
| NA NA 更多… | |
| ## 静态 Public 成员函数 | |
| static cocos2d::Ref | createInstance (void) | 
| static ComAudio | create (void) | 
  静态 Public 成员函数 继承自 Component | |
| static Component * | create (void) | 
| ## 静态 Public 属性 | |
| static cocostudio::ObjectFactory::TInfo | Type | 
| ## Protected 成员函数 | |
| ComAudio (void) | |
| ctor 更多… | |
| virtual | ~ComAudio (void) | 
| NA NA 更多… | |
  Protected 成员函数 继承自 Ref | |
| Ref () | |
| 构造函数 更多… | |
| ## 额外继承的成员函数 | |
  Protected 属性 继承自 Component | |
| Node * | _owner | 
| std::string | _name | 
| bool | _enabled | 
  Protected 属性 继承自 Ref | |
| unsigned int | _referenceCount | 
| 引用计数 更多… | |
构造及析构函数说明
 
 
  |  protected | 
ctor
 
 
  |  protectedvirtual | 
NA NA
成员函数说明
 
 
  |  static | 
 
 
  |  static | 
| void end | ( | ) | 
| float getBackgroundMusicVolume | ( | ) | 
| float getEffectsVolume | ( | ) | 
| const char* getFile | ( | ) | 
 
 
  |  overridevirtual | 
重载 Component .
| bool isBackgroundMusicPlaying | ( | ) | 
 
 
  |  overridevirtual | 
重载 Component .
| bool isLoop | ( | ) | 
 
 
  |  overridevirtual | 
NA NA
重载 Component .
 
 
  |  overridevirtual | 
NA NA
重载 Component .
| 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 | ( | ) | 
 
 
  |  overridevirtual | 
重载 Component .
| void setBackgroundMusicVolume | ( | float | volume | ) | 
| void setEffectsVolume | ( | float | volume | ) | 
 
 
  |  overridevirtual | 
重载 Component .
| 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 | ( | ) | 
类成员变量说明
 
 
  |  static | 
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/editor-support/cocostudio/CCComAudio.h
 
- cocostudio
 - ComAudio
 - 生成于 2014年 五月 29日 星期四 09:41:59 , 为 cocos2d-x使用  
 1.8.6   
 Public 成员函数 继承自 