ExtAudioFileSetProperty 崩溃的问题

来源:互联网 发布:爱福窝装修软件 编辑:程序博客网 时间:2024/04/27 16:45

问题: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会抛出异常,但这个异常不会影响程序崩溃,只要忽略这个异常,就可以运行了

原创粉丝点击