summaryrefslogtreecommitdiff
path: root/apps/dsp.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-02-26 17:15:04 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-02-26 17:15:04 +0000
commit9b9e22731c137ef3f3febde7d4a914e1adfe6253 (patch)
tree4e6f98841be43af0004f97e6d827986279b6ff28 /apps/dsp.c
parent94c02493a9f34a686655bd82dedba8c9a78cbc63 (diff)
downloadrockbox-9b9e22731c137ef3f3febde7d4a914e1adfe6253.tar.gz
rockbox-9b9e22731c137ef3f3febde7d4a914e1adfe6253.zip
SWCODEC: Fix the problem of replaygain not being applied unless the menu is entered. Make all codecs set the replay gain or else formats that do not have replaygain will not set the gain back to default if a file with gain applied proceeded them.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12498 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp.c')
-rw-r--r--apps/dsp.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/dsp.c b/apps/dsp.c
index f306069a87..f10bdfe2a6 100644
--- a/apps/dsp.c
+++ b/apps/dsp.c
@@ -1200,11 +1200,14 @@ bool dsp_configure(int setting, intptr_t value)
1200 void set_gain_var(long *var, long value) 1200 void set_gain_var(long *var, long value)
1201 { 1201 {
1202 /* Voice shouldn't mess with these */ 1202 /* Voice shouldn't mess with these */
1203 if (dsp != audio_dsp) 1203 if (dsp == audio_dsp)
1204 return; 1204 {
1205 1205 *var = value;
1206 *var = value; 1206 /* In case current gain is zero, force at least one call
1207 new_gain = true; 1207 to apply_gain or apply_gain won't pick up on new_gain */
1208 audio_dsp->gain = -1;
1209 new_gain = true;
1210 }
1208 } 1211 }
1209 1212
1210 void update_functions(void) 1213 void update_functions(void)