Hi - so our first app is almost ready to go. Behaves great in the simulator - but we have come across a really odd bug on the iphone.
On a start interrupt event we dispose the audio queue and close the audio file. On interrupt end we open the audio file, create a queue, prime the buffers and start the queue. It works doing it without the interrupt but with the interrupt it doesn't play.
So basically - if the user answers the call the app restarts fine and picks up from where they left off. However, if they reject the call, the caller hangs up before answers or the call is ignored the audio doesn't play etc.
Interestingly - if we call the interruption start and end handler functions from a background thread it resumes fine.
Is anyone aware of other things we should be aware of in the difference the way the SDK / iPhone handles answered call and rejected call interruptions?
Thanks
Craig
On a start interrupt event we dispose the audio queue and close the audio file. On interrupt end we open the audio file, create a queue, prime the buffers and start the queue. It works doing it without the interrupt but with the interrupt it doesn't play.
So basically - if the user answers the call the app restarts fine and picks up from where they left off. However, if they reject the call, the caller hangs up before answers or the call is ignored the audio doesn't play etc.
Interestingly - if we call the interruption start and end handler functions from a background thread it resumes fine.
Is anyone aware of other things we should be aware of in the difference the way the SDK / iPhone handles answered call and rejected call interruptions?
Thanks
Craig