1
0
mirror of https://github.com/godotengine/godot synced 2024-07-08 19:45:48 +00:00

Merge pull request #89594 from LeonardoDemartino/ios_airpods_routing

iOS: Fix AirPods routing when Play and Record category is used.
This commit is contained in:
Rémi Verschelde 2024-03-24 01:18:51 +01:00
commit a277361321
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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) {