summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-06 21:00:45 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-06 21:00:45 +0000
commit938593b1d52be231441e2252eef6cb2fe5d2c0b3 (patch)
tree49e5c38c00c8a53c072f7ee700f73104f345d97c
parentb425de71df7acdc82b4e466a5bac709d0dc15f64 (diff)
downloadrockbox-938593b1d52be231441e2252eef6cb2fe5d2c0b3.tar.gz
rockbox-938593b1d52be231441e2252eef6cb2fe5d2c0b3.zip
Put the sims in their place.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12650 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/pcmbuf.c4
1 files changed, 4 insertions, 0 deletions
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;
104static bool low_latency_mode = false; 104static bool low_latency_mode = false;
105static bool pcmbuf_flush; 105static bool pcmbuf_flush;
106 106
107#ifdef HAVE_PRIORITY_SCHEDULING
107static int codec_thread_priority = 0; 108static int codec_thread_priority = 0;
109#endif
108 110
109extern struct thread_entry *codec_thread_p; 111extern struct thread_entry *codec_thread_p;
110 112
@@ -258,7 +260,9 @@ static void pcmbuf_under_watermark(void)
258{ 260{
259 /* Only codec thread initiates boost - voice boosts the cpu when playing 261 /* Only codec thread initiates boost - voice boosts the cpu when playing
260 a clip */ 262 a clip */
263#ifndef SIMULATOR
261 if (thread_get_current() == codec_thread_p) 264 if (thread_get_current() == codec_thread_p)
265#endif /* SIMULATOR */
262 { 266 {
263#ifdef HAVE_PRIORITY_SCHEDULING 267#ifdef HAVE_PRIORITY_SCHEDULING
264 /* If buffer is critically low, override UI priority, else 268 /* If buffer is critically low, override UI priority, else