FMRadio: Run render thread at THREAD_PRIORITY_AUDIO
Change-Id: Ia7c558bb02b424e96e0af4d01684b7e51fd85bd4
diff --git a/src/com/android/fmradio/FmService.java b/src/com/android/fmradio/FmService.java
index 08817fa..32ffcf4 100644
--- a/src/com/android/fmradio/FmService.java
+++ b/src/com/android/fmradio/FmService.java
@@ -56,6 +56,7 @@
import android.os.Message;
import android.os.PowerManager;
import android.os.PowerManager.WakeLock;
+import android.os.Process;
import android.text.TextUtils;
import android.util.Log;
@@ -463,6 +464,7 @@
@Override
public void run() {
+ Process.setThreadPriority(Process.THREAD_PRIORITY_AUDIO);
try {
byte[] buffer = new byte[RECORD_BUF_SIZE];
while (!Thread.interrupted()) {