diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-03-07 20:55:37 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-03-07 20:55:37 +0000 |
| commit | 40c266532bcd6ebba12c577a1e80c218936f4555 (patch) | |
| tree | 5fb97e2b166d0be7382c446022abbf043182b14d /apps | |
| parent | e0b5ed8f014a0d4afded2603fdb8e628c44b8f3c (diff) | |
| download | rockbox-40c266532bcd6ebba12c577a1e80c218936f4555.zip rockbox-40c266532bcd6ebba12c577a1e80c218936f4555.tar.gz rockbox-40c266532bcd6ebba12c577a1e80c218936f4555.tar.bz2 rockbox-40c266532bcd6ebba12c577a1e80c218936f4555.tar.xz | |
Reduce binsize again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25060 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/metadata/mpc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/metadata/mpc.c b/apps/metadata/mpc.c index 9894bb8..8db7993 100644 --- a/apps/metadata/mpc.c +++ b/apps/metadata/mpc.c @@ -28,13 +28,8 @@ #include "logf.h" #include "replaygain.h" -#include "fixedpoint.h" -#include <stdlib.h> -#include <stdbool.h> -#include <inttypes.h> - /* Needed for replay gain in sv8, please search MPC_OLD_GAIN_REF in libmusepack */ -#define SV8_TO_SV7_CONVERT_GAIN (64.82*100) +#define SV8_TO_SV7_CONVERT_GAIN (6482) /* 64.82 * 100 */ static int set_replaygain_sv7(struct mp3entry* id3, bool album, @@ -66,7 +61,7 @@ static int set_replaygain_sv8(struct mp3entry* id3, long peak, long used) { - gain = (long)(SV8_TO_SV7_CONVERT_GAIN - (gain*100./256.)); + gain = (long)(SV8_TO_SV7_CONVERT_GAIN - ((gain*100)/256)); /* We use a peak value of 0 to indicate a given gain type isn't used. */ if (peak != 0) { |