ObjectAL-for-iPhone
ObjectAL-for-iPhone copied to clipboard
Bad exec crash on audioPlayerDidFinishPlaying
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];