summaryrefslogtreecommitdiffstats
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
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)
/* Maintain the buffer level above the watermark */
if (playing)
{
- /* Only codec thread initiates boost - voice boosts the cpu when playing
- a clip */
-#ifndef SIMULATOR
- if (is_codec_thread())
-#endif /* SIMULATOR */
- {
- /* boost cpu if necessary */
- if (pcmbuf_unplayed_bytes < pcmbuf_watermark)
- trigger_cpu_boost();
- boost_codec_thread(pcmbuf_unplayed_bytes*10/pcmbuf_size);
- }
+ /* boost cpu if necessary */
+ if (pcmbuf_unplayed_bytes < pcmbuf_watermark)
+ trigger_cpu_boost();
+ boost_codec_thread(pcmbuf_unplayed_bytes*10/pcmbuf_size);
#ifdef HAVE_CROSSFADE
/* Disable crossfade if < .5s of audio */