summaryrefslogtreecommitdiff
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
parent6c837394ca6d7a988bfbdc9e97630e69f0bc2025 (diff)
downloadrockbox-bc4c13ee8ae467af91a759a625425c9e4783f6eb.tar.gz
rockbox-bc4c13ee8ae467af91a759a625425c9e4783f6eb.zip
Fix previous errors for targets with no crossfade.
Change-Id: I1c10f5588f3fe06c7071f3f07b68e3d552c44f05
-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)
1394{ 1394{
1395 enum channel_status status = mixer_channel_status(PCM_MIXER_CHAN_PLAYBACK); 1395 enum channel_status status = mixer_channel_status(PCM_MIXER_CHAN_PLAYBACK);
1396 1396
1397 if (status != CHANNEL_PLAYING || crossfade_status != CROSSFADE_INACTIVE) 1397 if (status != CHANNEL_PLAYING)
1398 return false; 1398 return false;
1399 1399
1400#ifdef HAVE_CROSSFADE
1401 if (crossfade_status != CROSSFADE_INACTIVE)
1402 return false;
1403#endif
1404
1400 return pcmbuf_data_critical(); 1405 return pcmbuf_data_critical();
1401} 1406}
1402 1407