adds iOS audio interruption handling and recovery

This commit is contained in:
cigumo
2020-12-08 23:13:52 -03:00
parent 0b06d0d1f9
commit 74edaf8fba
7 changed files with 130 additions and 0 deletions
+6
View File
@@ -78,6 +78,12 @@ bool setAudioMixWithOthers(bool mixEnabled);
**/
bool hasBackgroundMusic();
/**
* Registers notifications to handle and restore audio interruptions
**/
void initAudioSessionInterruptionHandler();
void destroyAudioSessionInterruptionHandler();
/**
* Gets the area in the window that is safe for UI to render to (not covered by
* the status bar, notch, etc.)