ObjectAL-for-iPhone icon indicating copy to clipboard operation
ObjectAL-for-iPhone copied to clipboard

Bad exec crash on audioPlayerDidFinishPlaying

Open helloniklas opened this issue 11 years ago • 0 comments

Hey for some reason my app is crashing in - (void) audioPlayerDidFinishPlaying:(AVAudioPlayer*) playerIn successfully:(BOOL) flag

Specifically when it's trying to post the notification. If I uncomment this things works fine. I'm only using two OALAudioTrack so nothing fancy... Any ideas.

This is where it crashes.

[[NSNotificationCenter defaultCenter] performSelectorOnMainThread:@selector(postNotification:) withObject:[NSNotification notificationWithName:OALAudioTrackFinishedPlayingNotification object:self] waitUntilDone:NO];

helloniklas avatar Aug 07 '12 17:08 helloniklas