summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2005-09-24 15:56:33 +0000
committerMagnus Holmgren <magnushol@gmail.com>2005-09-24 15:56:33 +0000
commit415f3bddf62d289c033011061533c1a3da5cab9c (patch)
treea2ffbd47d69d110229fbfcd674e828e66f0afc72 /apps
parentc694954f73b7cfea662b332fc690cc02f5d0642c (diff)
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
Diffstat (limited to 'apps')
-rw-r--r--apps/screens.c2
-rw-r--r--apps/settings_menu.c2
2 files changed, 4 insertions, 0 deletions
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)
{