summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-07-21 22:25:09 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-07-21 22:25:09 +0000
commit96f02a9aa933f928d6b8e1500607f9ddea29f9ae (patch)
tree6cb7b786ccdf60b9a07e1ca2a3c5684269d7a85b /apps/pcmbuf.c
parent423d5a75777eb3e6047f8d7c4e14fc3a7c348271 (diff)
downloadrockbox-96f02a9aa933f928d6b8e1500607f9ddea29f9ae.tar.gz
rockbox-96f02a9aa933f928d6b8e1500607f9ddea29f9ae.zip
is_codec_thread() is not needed anymore since PCM buffer calls other than volume level are no longer made by the voice thread.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30189 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 946eb16021..2e8bc3f47c 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -332,17 +332,10 @@ static bool prepare_insert(size_t length)
332 /* Maintain the buffer level above the watermark */ 332 /* Maintain the buffer level above the watermark */
333 if (playing) 333 if (playing)
334 { 334 {
335 /* Only codec thread initiates boost - voice boosts the cpu when playing 335 /* boost cpu if necessary */
336 a clip */ 336 if (pcmbuf_unplayed_bytes < pcmbuf_watermark)
337#ifndef SIMULATOR 337 trigger_cpu_boost();
338 if (is_codec_thread()) 338 boost_codec_thread(pcmbuf_unplayed_bytes*10/pcmbuf_size);
339#endif /* SIMULATOR */
340 {
341 /* boost cpu if necessary */
342 if (pcmbuf_unplayed_bytes < pcmbuf_watermark)
343 trigger_cpu_boost();
344 boost_codec_thread(pcmbuf_unplayed_bytes*10/pcmbuf_size);
345 }
346 339
347#ifdef HAVE_CROSSFADE 340#ifdef HAVE_CROSSFADE
348 /* Disable crossfade if < .5s of audio */ 341 /* Disable crossfade if < .5s of audio */