1
0
Fork 0
forked from len0rd/rockbox

Oops, forgot to guard a couple of calls to dsp_set_replaygain...

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7560 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2005-09-24 15:56:33 +00:00
parent c694954f73
commit 415f3bddf6
2 changed files with 4 additions and 0 deletions

View file

@ -664,7 +664,9 @@ bool quick_screen(int context, int button)
if(audio_status() & AUDIO_STATUS_PLAY) if(audio_status() & AUDIO_STATUS_PLAY)
{ {
#if CONFIG_CODEC == SWCODEC
dsp_set_replaygain(true); dsp_set_replaygain(true);
#endif
if (global_settings.playlist_shuffle) if (global_settings.playlist_shuffle)
playlist_randomise(NULL, current_tick, true); playlist_randomise(NULL, current_tick, true);

View file

@ -1296,7 +1296,9 @@ static bool playback_settings_menu(void)
if ((old_shuffle != global_settings.playlist_shuffle) if ((old_shuffle != global_settings.playlist_shuffle)
&& (audio_status() & AUDIO_STATUS_PLAY)) && (audio_status() & AUDIO_STATUS_PLAY))
{ {
#if CONFIG_CODEC == SWCODEC
dsp_set_replaygain(true); dsp_set_replaygain(true);
#endif
if (global_settings.playlist_shuffle) if (global_settings.playlist_shuffle)
{ {