1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Resume audio on iOS after phone call or alarm

When a phone call or an alarm triggers on iOS, the application receives
an "audio interruption" and it's up to the application to resume
playback when the interruption ends. I added handling for audio
interruptions same as if the game is focused out and then back in.
This commit is contained in:
Ruslan Mustakov
2018-05-07 15:44:07 +07:00
parent e15305721d
commit 96301e934d
4 changed files with 72 additions and 22 deletions

View File

@@ -90,6 +90,7 @@ public:
virtual void finish();
bool try_lock();
void stop();
AudioDriverCoreAudio();
~AudioDriverCoreAudio();