StreamingKit icon indicating copy to clipboard operation
StreamingKit copied to clipboard

Keep getting thread error at AudioConverterNew

Open rickyjwhong opened this issue 9 years ago • 5 comments

STKAudioPlayer* audioPlayer = [[STKAudioPlayer alloc] init]; [audioPlayer play:@"http://www.abstractpath.com/files/audiosamples/sample.mp3"];

this will crash, and it leads me to status = AudioConverterNew(asbd, &canonicalAudioStreamBasicDescription, &audioConverterRef);

Am I doing something wrong?

It's status 12. Thank you so much!

rickyjwhong avatar Mar 09 '15 03:03 rickyjwhong

Greetings,

I believe you have all an all exception breakpoint set? You should be able to simply continue and the App will function fine.

hutchy avatar Mar 09 '15 03:03 hutchy

perfect thank you. But, is there a way around this? I still want to the exception breakpoint to catch other bugs

rickyjwhong avatar Mar 09 '15 03:03 rickyjwhong

I believe I previously had a symbolic breakpoint setup similarly to this Stackoverflow answer:

http://stackoverflow.com/questions/14370632/ignore-certain-exceptions-when-using-xcodes-all-exceptions-breakpoint

I'm sure someone will have a better option as I'm not great with debugging / breakpoints etc.

hutchy avatar Mar 09 '15 07:03 hutchy

Try changing your breakpoint from all exceptions to just Objective-C exceptions

bhelin avatar Mar 09 '15 20:03 bhelin

same problem, is there has anything update?

dujiepeng avatar Aug 27 '19 11:08 dujiepeng