From bc4c13ee8ae467af91a759a625425c9e4783f6eb Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 5 Jan 2017 03:22:47 -0500 Subject: Fix previous errors for targets with no crossfade. Change-Id: I1c10f5588f3fe06c7071f3f07b68e3d552c44f05 --- apps/pcmbuf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/pcmbuf.c') 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(); } -- cgit v1.2.3