Display and control your Android device
Increase attempts to start AudioRecord
Romain Vimont01d785d9a340
diff --git a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.javaindex 7b20cce4..5575ffb6 100644--- a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java+++ b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java@@ -118,7 +118,7 @@ public final class AudioCapture {if (Build.VERSION.SDK_INT == Build.VERSION_CODES.R) {startWorkaroundAndroid11();try {- tryStartRecording(3, 100);+ tryStartRecording(5, 100);} finally {stopWorkaroundAndroid11();}