摘要:
背景音乐的播放与停止实例代码如下:[html]view plaincopySimpleAudioEngine::getInstance()->playBackgroundMusic("sound/Jazz.mp3",true);SimpleAudioEngine::getInstance()->st... 阅读全文
摘要:
Cocos2d-x提供了一个音频CocosDenshion引擎,CocosDenshion引擎可以独立于Cocos2d-x单独使用,CocosDenshion引擎本质上封装了OpenAL音频处理库。具体使用的API是SimpleAudioEngine。SimpleAudioEngine有几个常用的函... 阅读全文