From 938593b1d52be231441e2252eef6cb2fe5d2c0b3 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 6 Mar 2007 21:00:45 +0000 Subject: [PATCH] Put the sims in their place. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12650 a1c6a512-1295-4272-9138-f99709370657 --- apps/pcmbuf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c index 91b9f1329b..568cc7f49e 100644 --- a/apps/pcmbuf.c +++ b/apps/pcmbuf.c @@ -104,7 +104,9 @@ static size_t pcmbuf_mix_sample IDATA_ATTR; static bool low_latency_mode = false; static bool pcmbuf_flush; +#ifdef HAVE_PRIORITY_SCHEDULING static int codec_thread_priority = 0; +#endif extern struct thread_entry *codec_thread_p; @@ -258,7 +260,9 @@ static void pcmbuf_under_watermark(void) { /* Only codec thread initiates boost - voice boosts the cpu when playing a clip */ +#ifndef SIMULATOR if (thread_get_current() == codec_thread_p) +#endif /* SIMULATOR */ { #ifdef HAVE_PRIORITY_SCHEDULING /* If buffer is critically low, override UI priority, else