mirror of
https://github.com/godotengine/godot
synced 2024-07-20 18:10:40 +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:
commit
a277361321
|
@ -116,6 +116,8 @@ static ViewController *mainViewController = nil;
|
||||||
} else if (sessionCategorySetting == SESSION_CATEGORY_PLAY_AND_RECORD) {
|
} else if (sessionCategorySetting == SESSION_CATEGORY_PLAY_AND_RECORD) {
|
||||||
category = AVAudioSessionCategoryPlayAndRecord;
|
category = AVAudioSessionCategoryPlayAndRecord;
|
||||||
options |= AVAudioSessionCategoryOptionDefaultToSpeaker;
|
options |= AVAudioSessionCategoryOptionDefaultToSpeaker;
|
||||||
|
options |= AVAudioSessionCategoryOptionAllowBluetoothA2DP;
|
||||||
|
options |= AVAudioSessionCategoryOptionAllowAirPlay;
|
||||||
} else if (sessionCategorySetting == SESSION_CATEGORY_PLAYBACK) {
|
} else if (sessionCategorySetting == SESSION_CATEGORY_PLAYBACK) {
|
||||||
category = AVAudioSessionCategoryPlayback;
|
category = AVAudioSessionCategoryPlayback;
|
||||||
} else if (sessionCategorySetting == SESSION_CATEGORY_RECORD) {
|
} else if (sessionCategorySetting == SESSION_CATEGORY_RECORD) {
|
||||||
|
|
Loading…
Reference in a new issue