summaryrefslogtreecommitdiffstats
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2017-01-05 03:22:47 -0500
committerMichael Sevakis <jethead71@rockbox.org>2017-01-05 03:22:47 -0500
commitbc4c13ee8ae467af91a759a625425c9e4783f6eb (patch)
treefb7e272c6ff98159d875f6bded77b3936a3244ee /apps/pcmbuf.c
parent6c837394ca6d7a988bfbdc9e97630e69f0bc2025 (diff)
downloadrockbox-bc4c13ee8ae467af91a759a625425c9e4783f6eb.tar.gz
rockbox-bc4c13ee8ae467af91a759a625425c9e4783f6eb.zip
Fix previous errors for targets with no crossfade.
Change-Id: I1c10f5588f3fe06c7071f3f07b68e3d552c44f05
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 8c1ca06c2b..6e2c51c80a 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -1394,9 +1394,14 @@ bool pcmbuf_is_lowdata(void)
{
enum channel_status status = mixer_channel_status(PCM_MIXER_CHAN_PLAYBACK);
- if (status != CHANNEL_PLAYING || crossfade_status != CROSSFADE_INACTIVE)
+ if (status != CHANNEL_PLAYING)
return false;
+#ifdef HAVE_CROSSFADE
+ if (crossfade_status != CROSSFADE_INACTIVE)
+ return false;
+#endif
+
return pcmbuf_data_critical();
}