diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-24 01:18:51 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-24 01:18:51 +0100 |
commit | a277361321fec2adb43636eaad7be7ca8be0656b (patch) | |
tree | 82f3d59c30c304d785b518893a4c9af8287cced8 | |
parent | 55d051ee0df28b18bb8d9ecb93d0e05be5989554 (diff) | |
parent | 3bdbf90f496913d417af8b58ea48bd2d22b2aabf (diff) | |
download | redot-engine-a277361321fec2adb43636eaad7be7ca8be0656b.tar.gz |
Merge pull request #89594 from LeonardoDemartino/ios_airpods_routing
iOS: Fix AirPods routing when Play and Record category is used.
-rw-r--r-- | platform/ios/app_delegate.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/app_delegate.mm b/platform/ios/app_delegate.mm index 5a0c57be93..37d2696434 100644 --- a/platform/ios/app_delegate.mm +++ b/platform/ios/app_delegate.mm @@ -116,6 +116,8 @@ static ViewController *mainViewController = nil; } else if (sessionCategorySetting == SESSION_CATEGORY_PLAY_AND_RECORD) { category = AVAudioSessionCategoryPlayAndRecord; options |= AVAudioSessionCategoryOptionDefaultToSpeaker; + options |= AVAudioSessionCategoryOptionAllowBluetoothA2DP; + options |= AVAudioSessionCategoryOptionAllowAirPlay; } else if (sessionCategorySetting == SESSION_CATEGORY_PLAYBACK) { category = AVAudioSessionCategoryPlayback; } else if (sessionCategorySetting == SESSION_CATEGORY_RECORD) { |