Skip to content

Commit e82e46d

Browse files
committed
RecorderThread.kt: Set priority to THREAD_PRIORITY_URGENT_AUDIO
Issue: #39 #54 Signed-off-by: Andrew Gunnerson <[email protected]>
1 parent acf0117 commit e82e46d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/chiller3/bcr/RecorderThread.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class RecorderThread(
277277
*/
278278
@SuppressLint("MissingPermission")
279279
private fun recordUntilCancelled(pfd: ParcelFileDescriptor) {
280-
AndroidProcess.setThreadPriority(AndroidProcess.THREAD_PRIORITY_AUDIO)
280+
AndroidProcess.setThreadPriority(AndroidProcess.THREAD_PRIORITY_URGENT_AUDIO)
281281

282282
val audioFormat = AudioFormat.Builder().run {
283283
setEncoding(ENCODING)

0 commit comments

Comments
 (0)