0

Whether play or preload sound effect.

code here:

CocosDenshion::SimpleAudioEngine::sharedEngine()->playEffect("debug.mp3");

I will get this error: ExtAudioFileOpenURL

enter image description here

The sound file is exist in app. And file is right.

enter image description here

zszen
  • 1,428
  • 1
  • 14
  • 18
  • Now I fixed it. just convert the mp3 to a correct format. in ios don't support all format of mp3 – zszen Sep 25 '14 at 14:58

2 Answers2

0

Now I fix that. It cause by I add a "All C++ Exceptions".

enter image description here

zszen
  • 1,428
  • 1
  • 14
  • 18
  • no, no, my mp3 music format don't support be with ios . it works well after convert with goldwave. – zszen Oct 19 '14 at 06:47
0

Your solution is a a valid workaround, but you are not debugging the rest of exceptions. I'm doing this to get rid of this problem:

Add a symbolic exception with this settings:

symbol:

objc_exception_throw

condition:

(BOOL)(! (BOOL)[[(NSException
*)$eax className] hasPrefix:@"_CDOpen"])

Please refer to this answer for more information:

Ignore certain exceptions when using Xcode's All Exceptions breakpoint

Community
  • 1
  • 1
  • 1
    no, no, my mp3 music format don't support be with ios . it works well after convert with goldwave. – zszen Oct 19 '14 at 06:47
  • Ok thanks, is good to know it. My game was raising the same exception loading a mp3 file, but the mp3 was played without any problem, so I ignored explicity only that exception. I will try goldwave, your solutions seems much better :) – albertocsouto Oct 25 '14 at 15:30