From e82e46dfe94e17719e1fda64407bd15bdbdf637f Mon Sep 17 00:00:00 2001 From: Andrew Gunnerson Date: Sat, 4 Jun 2022 00:08:27 -0400 Subject: [PATCH] RecorderThread.kt: Set priority to THREAD_PRIORITY_URGENT_AUDIO Issue: #39 #54 Signed-off-by: Andrew Gunnerson --- app/src/main/java/com/chiller3/bcr/RecorderThread.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/chiller3/bcr/RecorderThread.kt b/app/src/main/java/com/chiller3/bcr/RecorderThread.kt index 6c7eff0c6..ca175c85d 100644 --- a/app/src/main/java/com/chiller3/bcr/RecorderThread.kt +++ b/app/src/main/java/com/chiller3/bcr/RecorderThread.kt @@ -277,7 +277,7 @@ class RecorderThread( */ @SuppressLint("MissingPermission") private fun recordUntilCancelled(pfd: ParcelFileDescriptor) { - AndroidProcess.setThreadPriority(AndroidProcess.THREAD_PRIORITY_AUDIO) + AndroidProcess.setThreadPriority(AndroidProcess.THREAD_PRIORITY_URGENT_AUDIO) val audioFormat = AudioFormat.Builder().run { setEncoding(ENCODING)