diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2017-01-05 03:22:47 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2017-01-05 03:22:47 -0500 |
commit | bc4c13ee8ae467af91a759a625425c9e4783f6eb (patch) | |
tree | fb7e272c6ff98159d875f6bded77b3936a3244ee /apps/pcmbuf.c | |
parent | 6c837394ca6d7a988bfbdc9e97630e69f0bc2025 (diff) | |
download | rockbox-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.c | 7 |
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(); } |