summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-24 19:10:59 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-24 19:10:59 +0000
commit71ceac0b740398050af4f21b56acd5b31e2520f0 (patch)
treeda550f14a3c81f62aceae698c8b459287d201a01 /apps/screens.c
parent65109732230849eeb9eec2f56f9e046ad6b476c3 (diff)
downloadrockbox-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/screens.c')
-rw-r--r--apps/screens.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 81472e6cc7..b1a48c5bd6 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -53,6 +53,7 @@
53#include "backdrop.h" 53#include "backdrop.h"
54#include "viewport.h" 54#include "viewport.h"
55#include "language.h" 55#include "language.h"
56#include "replaygain.h"
56 57
57#if CONFIG_CODEC == SWCODEC 58#if CONFIG_CODEC == SWCODEC
58#include "dsp.h" 59#include "dsp.h"
@@ -728,10 +729,12 @@ static const char* id3_get_info(int selected_item, void* data,
728 break; 729 break;
729#if CONFIG_CODEC == SWCODEC 730#if CONFIG_CODEC == SWCODEC
730 case LANG_ID3_TRACK_GAIN: 731 case LANG_ID3_TRACK_GAIN:
731 val=id3->track_gain_string; 732 replaygain_itoa(buffer, buffer_len, id3->track_gain);
733 val=(id3->track_gain) ? buffer : NULL; /* only show gains!=0 */
732 break; 734 break;
733 case LANG_ID3_ALBUM_GAIN: 735 case LANG_ID3_ALBUM_GAIN:
734 val=id3->album_gain_string; 736 replaygain_itoa(buffer, buffer_len, id3->album_gain);
737 val=(id3->album_gain) ? buffer : NULL; /* only show gains!=0 */
735 break; 738 break;
736#endif 739#endif
737 case LANG_ID3_PATH: 740 case LANG_ID3_PATH: