diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-08-28 14:26:59 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-08-28 14:26:59 +0000 |
commit | 31567306e7f06a26e0c193eaf29793f3017f55f2 (patch) | |
tree | 6c0facfab037077c8f5cfa3826e2b1495c93f8a7 /apps/pcmbuf.c | |
parent | cc6a780a13ea081df21bc3e3b6b8d72d61f361e7 (diff) | |
download | rockbox-31567306e7f06a26e0c193eaf29793f3017f55f2.tar.gz rockbox-31567306e7f06a26e0c193eaf29793f3017f55f2.zip |
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
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r-- | apps/pcmbuf.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
1283 | 1283 | ||
1284 | bool pcmbuf_is_lowdata(void) | 1284 | bool pcmbuf_is_lowdata(void) |
1285 | { | 1285 | { |
1286 | if (!audio_pcmbuf_may_play() || pcmbuf_is_crossfade_active()) | 1286 | enum channel_status status = mixer_channel_status(PCM_MIXER_CHAN_PLAYBACK); |
1287 | |||
1288 | if (status != CHANNEL_PLAYING || pcmbuf_is_crossfade_active()) | ||
1287 | return false; | 1289 | return false; |
1288 | 1290 | ||
1289 | #if MEMORYSIZE > 2 | 1291 | #if MEMORYSIZE > 2 |