Sometimes iOS interrupts the current audio session. This happens for example when another app is put into the foreground that also plays audio.
I also had problems with routing changes when a phone call is coming in.When I accept the phone call audio routing changes from headphone to iPhone speakers while the phone call and audio playback are both still active. This is not optimal
I may be missing something but I see no way to get notified from JUCE about routing changes or audio session interruptions. Therefore there is no way to go to a paused state in my app when that happens.
Any pointers in the right direction would be very much appreciated.