forked from len0rd/rockbox
Reduce binsize again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25060 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e0b5ed8f01
commit
40c266532b
1 changed files with 2 additions and 7 deletions
|
@ -28,13 +28,8 @@
|
||||||
#include "logf.h"
|
#include "logf.h"
|
||||||
#include "replaygain.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 */
|
/* 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,
|
static int set_replaygain_sv7(struct mp3entry* id3,
|
||||||
bool album,
|
bool album,
|
||||||
|
@ -66,7 +61,7 @@ static int set_replaygain_sv8(struct mp3entry* id3,
|
||||||
long peak,
|
long peak,
|
||||||
long used)
|
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. */
|
/* We use a peak value of 0 to indicate a given gain type isn't used. */
|
||||||
if (peak != 0) {
|
if (peak != 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue