mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix AirPods routing when Play and Record category is used.
This commit is contained in:
parent
fe01776f05
commit
3bdbf90f49
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue