链接:http://stackoverflow.com/questions/13271666/cocosdenshion-i-keep-seeing-exceptions-thrown
问题:We are using CocosDenshion for our games. When we turn on exception breakpoints in xcode we keep getting exceptions from
status = ExtAudioFileSetProperty(extRef, kExtAudioFileProperty_ClientDataFormat, sizeof(theOutputFormat), &theOutputFormat);
In CDOpenALSupport.m
(note that this exception does not crash the game as it is caught by CocosDenshion but still we want to see if we can prevent these exceptions).
答案:Set the exception breakpoint to handle only Objective-C exceptions. This prevents these Cocosdenshion exceptions from being caught by the breakpoint.
I wager they're nothing to worry about, it's been like that for as long as I can remember.
总结:ExtAudioFileSetProperty会抛出异常,但这个异常不会影响程序崩溃,只要忽略这个异常,就可以运行了
相关推荐
CocosDenshion
Cocos2dx引擎CocosDenshion库-Win32平台下实现setBackgroundMusicVolume函数
此代码在cocos2dx2.1.4下面编译有部分错误,我修改后,正常。 下下来后,请在VC++包含目录中链接(F:\cocos2d-x...然后在链接器里附加包含目录加( F:\cocos2d-x-2.1.4\Debug.win32)以免出现libcocos2dx找不到的错误。
对于 Cocos2D-x 和 CocosDenshion,请参阅他们的许可证所有代码均在 GPL v2 下获得许可所有断言、图像和声音均根据知识共享署名-非商业性-禁止衍生 (CC BY-NC-ND) 获得许可使用代码完全没问题,但请制作您自己的作品...
Mac版FinalFighter 这是FinalFighter for iOS的开源版本。 我将此源代码作为开放源代码发布,以用于您的个人娱乐或教育目的。... 子目录FinalFighter-mac/libs/中包含了cocos2d,Kazmath,CocosDenshion,Box2D
消水果游戏大家都玩过吧,今天小编给大家分享实现消水果游戏的代码,废话不多说了,具体代码如下所示: #include InGameScene.h #include PauseLayer.h #include ScoreScene.h #include AppDelegate.h extern C { ...
using namespace CocosDenshion; bool isPaused = false; GameLayer::GameLayer():m_state(statePlaying),m_time(0),m_ship(NULL),m_backSky(NULL),m_backSkyHeight(0),m_backSkyRe(NULL),m_backTileMap(NULL),m_...
8.4 CocosDenshion声音模块 252 8.5 背景音乐操作函数 253 8.6 声音音效操作函数 255 8.7 示例程序 256 8.8 本章小结 259 第9章 文件操作模块 261 9.1 概述 261 9.2 引擎文件操作模块 261 9.3 读取文件 263 9.4 写入...