aboutsummaryrefslogtreecommitdiff
path: root/platform/iphone/app_delegate.h
diff options
context:
space:
mode:
authorRuslan Mustakov2018-05-07 15:44:07 +0700
committerRuslan Mustakov2018-05-07 15:48:46 +0700
commit96301e934d7600975922c5f373a488a532d77aad (patch)
tree7a521d7a508e2e872944ef691df45771f1735318 /platform/iphone/app_delegate.h
parente15305721da0e4478b62efcda3e79f1c04e7a901 (diff)
downloadgodot-96301e9.tar.gz
godot-96301e9.tar.zst
godot-96301e9.zip
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.
Diffstat (limited to 'platform/iphone/app_delegate.h')
-rw-r--r--platform/iphone/app_delegate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/iphone/app_delegate.h b/platform/iphone/app_delegate.h
index f14864b5b..c34b5053d 100644
--- a/platform/iphone/app_delegate.h
+++ b/platform/iphone/app_delegate.h
@@ -37,6 +37,7 @@
@interface AppDelegate : NSObject <UIApplicationDelegate, GLViewDelegate> {
//@property (strong, nonatomic) UIWindow *window;
ViewController *view_controller;
+ bool is_focus_out;
};
@property(strong, nonatomic) UIWindow *window;