From 31567306e7f06a26e0c193eaf29793f3017f55f2 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 28 Aug 2011 14:26:59 +0000 Subject: [PATCH] Restore functionality of pcmbuf_is_lowdata. It fell out of sync since the mixer code and then an incorrect change unintentionally remained in r30366. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30369 a1c6a512-1295-4272-9138-f99709370657 --- apps/pcmbuf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c index 7209dc1638..928f6035da 100644 --- a/apps/pcmbuf.c +++ b/apps/pcmbuf.c @@ -1283,7 +1283,9 @@ void pcmbuf_soft_mode(bool shhh) bool pcmbuf_is_lowdata(void) { - if (!audio_pcmbuf_may_play() || pcmbuf_is_crossfade_active()) + enum channel_status status = mixer_channel_status(PCM_MIXER_CHAN_PLAYBACK); + + if (status != CHANNEL_PLAYING || pcmbuf_is_crossfade_active()) return false; #if MEMORYSIZE > 2