From 32d77fdc5b9494a5fde776f7767a9386eb577a72 Mon Sep 17 00:00:00 2001 From: KreitinnSoftware Date: Tue, 7 Jan 2025 19:18:15 -0300 Subject: [PATCH] Workaround for Audio on OneUI 6.1+ (for #60) --- app/src/main/java/com/micewine/emu/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/micewine/emu/activities/MainActivity.kt b/app/src/main/java/com/micewine/emu/activities/MainActivity.kt index 46d7f2e..120c1c6 100644 --- a/app/src/main/java/com/micewine/emu/activities/MainActivity.kt +++ b/app/src/main/java/com/micewine/emu/activities/MainActivity.kt @@ -609,7 +609,7 @@ class MainActivity : AppCompatActivity() { runCommand("pkill -9 wineserver") runCommand("pkill -9 .exe") - runCommand(getEnv() + "$usrDir/bin/pulseaudio --start --exit-idle=-1") + runCommand(getEnv() + "LD_PRELOAD=/system/lib64/libskcodec.so $usrDir/bin/pulseaudio --start --exit-idle=-1") if (!enableServices) { lifecycleScope.launch {