diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-24 19:10:59 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-24 19:10:59 +0000 |
commit | 71ceac0b740398050af4f21b56acd5b31e2520f0 (patch) | |
tree | da550f14a3c81f62aceae698c8b459287d201a01 /apps/metadata/mpc.c | |
parent | 65109732230849eeb9eec2f56f9e046ad6b476c3 (diff) | |
download | rockbox-71ceac0b740398050af4f21b56acd5b31e2520f0.tar.gz rockbox-71ceac0b740398050af4f21b56acd5b31e2520f0.zip |
FS#11964. Rework replaygain handling to save metadata buffer and binsize. Remove string representation of replaygain and use a dedicated ftoa implementation for WPS/screen info.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29388 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/mpc.c')
-rw-r--r-- | apps/metadata/mpc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/metadata/mpc.c b/apps/metadata/mpc.c index 0387dc9f77..0b75ed04dd 100644 --- a/apps/metadata/mpc.c +++ b/apps/metadata/mpc.c | |||
@@ -46,8 +46,7 @@ static int set_replaygain_sv7(struct mp3entry* id3, | |||
46 | /* We use a peak value of 0 to indicate a given gain type isn't used. */ | 46 | /* We use a peak value of 0 to indicate a given gain type isn't used. */ |
47 | if (peak != 0) { | 47 | if (peak != 0) { |
48 | /* Save the ReplayGain data to id3-structure for further processing. */ | 48 | /* Save the ReplayGain data to id3-structure for further processing. */ |
49 | used += parse_replaygain_int(album, gain * 512 / 100, peak << 9, | 49 | parse_replaygain_int(album, gain * 512 / 100, peak << 9, id3); |
50 | id3, id3->toc + used, sizeof(id3->toc) - used); | ||
51 | } | 50 | } |
52 | 51 | ||
53 | return used; | 52 | return used; |
@@ -73,8 +72,7 @@ static int set_replaygain_sv8(struct mp3entry* id3, | |||
73 | /* We use a peak value of 0 to indicate a given gain type isn't used. */ | 72 | /* We use a peak value of 0 to indicate a given gain type isn't used. */ |
74 | if (peak != 0) { | 73 | if (peak != 0) { |
75 | /* Save the ReplayGain data to id3-structure for further processing. */ | 74 | /* Save the ReplayGain data to id3-structure for further processing. */ |
76 | used += parse_replaygain_int(album, gain * 512 / 100, peak, | 75 | parse_replaygain_int(album, gain * 512 / 100, peak, id3); |
77 | id3, id3->toc + used, sizeof(id3->toc) - used); | ||
78 | } | 76 | } |
79 | 77 | ||
80 | return used; | 78 | return used; |