您的位置:首页 > 运维架构

ExtAudioFileSetProperty 崩溃的问题

2017-12-15 15:55 323 查看
问题: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会抛出异常,但这个异常不会影响程序崩溃,只要忽略这个异常,就可以运行了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐