From 415f3bddf62d289c033011061533c1a3da5cab9c Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Sat, 24 Sep 2005 15:56:33 +0000 Subject: 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 --- apps/screens.c | 2 ++ apps/settings_menu.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'apps') diff --git a/apps/screens.c b/apps/screens.c index b85d79bb28..7ac87ac063 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -664,7 +664,9 @@ bool quick_screen(int context, int button) if(audio_status() & AUDIO_STATUS_PLAY) { +#if CONFIG_CODEC == SWCODEC dsp_set_replaygain(true); +#endif if (global_settings.playlist_shuffle) playlist_randomise(NULL, current_tick, true); diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 59c800588f..8a1fa72415 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -1296,7 +1296,9 @@ static bool playback_settings_menu(void) if ((old_shuffle != global_settings.playlist_shuffle) && (audio_status() & AUDIO_STATUS_PLAY)) { +#if CONFIG_CODEC == SWCODEC dsp_set_replaygain(true); +#endif if (global_settings.playlist_shuffle) { -- cgit v1.2.3