summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-04-06 20:33:35 +0000
committerThom Johansen <thomj@rockbox.org>2006-04-06 20:33:35 +0000
commitba0876743412ffaf9e549ccb9899468ad9ad5dbf (patch)
tree10024adacba4f4b232085e20da248c29b0eba82e
parent5ad51c61bcfa5431dcfd396be0ef5664876ec14e (diff)
downloadrockbox-ba0876743412ffaf9e549ccb9899468ad9ad5dbf.tar.gz
rockbox-ba0876743412ffaf9e549ccb9899468ad9ad5dbf.zip
Allow lower cuts than -23 dB, since the code seems to work then anyway.
This is needed by both EQ pre-cut and new crossfeed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9538 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/replaygain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/replaygain.c b/firmware/replaygain.c
index 3a2e89757a..a8331ae483 100644
--- a/firmware/replaygain.c
+++ b/firmware/replaygain.c
@@ -289,9 +289,9 @@ static long convert_gain(long gain)
289 /* Don't allow unreasonably low or high gain changes. 289 /* Don't allow unreasonably low or high gain changes.
290 * Our math code can't handle it properly anyway. :) 290 * Our math code can't handle it properly anyway. :)
291 */ 291 */
292 if (gain < (-23 * FP_ONE)) 292 if (gain < (-48 * FP_ONE))
293 { 293 {
294 gain = -23 * FP_ONE; 294 gain = -48 * FP_ONE;
295 } 295 }
296 296
297 if (gain > (17 * FP_ONE)) 297 if (gain > (17 * FP_ONE))