原地址: http://hulefei29.iteye.com/blog/1910362
问题: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进行游戏开发时遇到的异常问题,特别是关于`ExtAudioFileSetProperty`导致的异常情况。提供了设置异常断点以仅处理Objective-C异常的方法,确保异常不会干扰游戏运行。

被折叠的 条评论
为什么被折叠?



