Move strings to InfoPlist.strings, change AVAudioSession category

Change AVAudioSession category to AVAudioSessionCategoryPlayAndRecord
This commit is contained in:
Duy Tran Khanh committed 2023-01-30 08:40:27 +07:00
1 parent 9fb19fa211
commit 4e2a62d24b
3 files changed
+5 -3

No files matched your search

+2 -2
View File
@@ -111,9 +111,9 @@
<string>_altserver._tcp</string>
</array>
<key>NSLocalNetworkUsageDescription</key>
<string>PojavLauncher uses the local network to find and communicate with AltServer and LAN servers.</string>
<string>NSLocalNetworkUsageDescription</string>
<key>NSMicrophoneUsageDescription</key>
<string>PojavLauncher uses the microphone to enable support for voice chat mods.</string>
<string>NSMicrophoneUsageDescription</string>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
+1 -1
View File
@@ -289,7 +289,7 @@ int launchJVM(NSString *username, id launchTarget, int width, int height, int mi
// TODO: Add preference toggle
NSError *sessionError = nil;
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback withOptions:AVAudioSessionCategoryOptionMixWithOthers error:&sessionError];
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionMixWithOthers error:&sessionError];
[[AVAudioSession sharedInstance] setActive:YES error:&sessionError];
+2
View File
@@ -1 +1,3 @@
/* Localized versions of Info.plist keys */
"NSLocalNetworkUsageDescription" = "PojavLauncher uses the local network to find and communicate with AltServer and LAN servers.";
"NSMicrophoneUsageDescription" = "PojavLauncher uses the microphone to enable support for voice chat mods.";