mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -05:00
Fix previous errors for targets with no crossfade.
Change-Id: I1c10f5588f3fe06c7071f3f07b68e3d552c44f05
This commit is contained in:
parent
6c837394ca
commit
bc4c13ee8a
1 changed files with 6 additions and 1 deletions
|
|
@ -1394,9 +1394,14 @@ bool pcmbuf_is_lowdata(void)
|
||||||
{
|
{
|
||||||
enum channel_status status = mixer_channel_status(PCM_MIXER_CHAN_PLAYBACK);
|
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;
|
return false;
|
||||||
|
|
||||||
|
#ifdef HAVE_CROSSFADE
|
||||||
|
if (crossfade_status != CROSSFADE_INACTIVE)
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
|
||||||
return pcmbuf_data_critical();
|
return pcmbuf_data_critical();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue