From f1ec148e16fb940ebb6b5bf13ce3ec420ab34be2 Mon Sep 17 00:00:00 2001 From: khanhduytran0 Date: Sat, 13 Jul 2024 14:13:54 +0700 Subject: [PATCH] Fix[input]: correct AVAudioSessionCategory for microphone --- Natives/SurfaceViewController.m | 2 +- Natives/resources/en.lproj/Localizable.strings | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Natives/SurfaceViewController.m b/Natives/SurfaceViewController.m index 16544587..0bfc7a2f 100644 --- a/Natives/SurfaceViewController.m +++ b/Natives/SurfaceViewController.m @@ -295,7 +295,7 @@ static GameSurfaceView* pojavWindow; if(getPrefBool(@"video.silence_with_switch")) { category = AVAudioSessionCategorySoloAmbient; } else { - category = AVAudioSessionCategoryPlayback; + category = AVAudioSessionCategoryPlayAndRecord; } if(getPrefBool(@"video.silence_other_audio")) { options = 0; diff --git a/Natives/resources/en.lproj/Localizable.strings b/Natives/resources/en.lproj/Localizable.strings index 4dc4c055..0e41ea61 100644 --- a/Natives/resources/en.lproj/Localizable.strings +++ b/Natives/resources/en.lproj/Localizable.strings @@ -196,8 +196,8 @@ "preference.detail.fullscreen_airplay" = "Allows presenting fullscreen game window on the external display rather than mirroring everything on screen."; "preference.title.silence_other_audio" = "Pause audio when game opens"; "preference.detail.silence_other_audio" = "Enable to allow PojavLauncher to pause audio from other apps, such as Music, when launching the game."; -"preference.title.silence_with_switch" = "Disable audio with silent switch"; -"preference.detail.silence_with_switch" = "Enable to disable audio when Silent Mode is on. Headphones and external speakers are not affected."; +"preference.title.silence_with_switch" = "Disable audio with silent switch and deny microphone input"; +"preference.detail.silence_with_switch" = "Enable to disable audio when Silent Mode is on, and deny microphone input. Headphones and external speakers are not affected."; "preference.title.default_gamepad_ctrl" = "Controller configuration"; "preference.title.hardware_hide" = "Hide controls when hardware is connected"; "preference.detail.hardware_hide" = "Enable the behaviour of automatically disabling the on-screen control overlay when a mouse or game controller is connected.";