summaryrefslogtreecommitdiffstats
path: root/firmware/export/pcm_mixer.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/pcm_mixer.h')
-rw-r--r--firmware/export/pcm_mixer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/pcm_mixer.h b/firmware/export/pcm_mixer.h
index 3d255a7345..39a814de6f 100644
--- a/firmware/export/pcm_mixer.h
+++ b/firmware/export/pcm_mixer.h
@@ -40,6 +40,10 @@
/* iBasso Devices: Match Rockbox PCM buffer size to ALSA PCM buffer size
to minimize memory transfers. */
#define MIX_FRAME_SAMPLES 2048
+#elif (CONFIG_PLATFORM & PLATFORM_HOSTED)
+/* Hosted targets need larger buffers for decent performance due to
+ OS locking/scheduling overhead */
+#define MIX_FRAME_SAMPLES 1024
#else
/* Assume HW DMA engine is available or sufficient latency exists in the
PCM pathway */