kstenerud / ObjectAL-for-iPhone

Mac and iOS Audio development, minus the headache. ObjectAL is the easy Objective-C interface to OpenAL, AVAudioPlayer, and audio session management.
http://kstenerud.github.com/ObjectAL-for-iPhone
886 stars 171 forks source link

[INTERRUPT] Fixes crashing interruption; `methodForSelector` --> `NSInvocation` #79

Closed darionco closed 9 years ago

darionco commented 9 years ago

Fixes crashing runtime call with the more robust NSInvocation.

Current crash repro steps:

  1. Launch app
  2. Play audio (I use simple engine to play music)
  3. Receive an interrupt (I call my cellphone to repro)
  4. Exception crash.
kstenerud commented 9 years ago

Awesome! Thanks!

megastep commented 9 years ago

I applied this to the setManuallySuspended: method in my branch:

https://github.com/megastep/ObjectAL-for-iPhone/commit/039c2ced1f7df7c5951c7159ffbe2f191bce5220