From a0fece94bda85861676115dcd942430f77bac253 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 24 Jul 2008 11:27:37 +0200 Subject: Initial ReplayGain work (including anti-clipping) Could be tuned... --- libpiano/src/piano.h | 2 +- libpiano/src/xml.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'libpiano') diff --git a/libpiano/src/piano.h b/libpiano/src/piano.h index ed3014a..3a7c740 100644 --- a/libpiano/src/piano.h +++ b/libpiano/src/piano.h @@ -80,7 +80,7 @@ struct PianoSong { /* disabled: isSeed */ /* disabled: artistFansURL */ /* disabled: songExplorerUrl */ - //float fileGain; + float fileGain; /* disabled: songDetailURL */ /* disabled: albumDetailURL */ //char *webId; diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c index 5f138ff..55cb5fe 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -265,6 +265,8 @@ void PianoXmlParsePlaylistCb (const char *key, const xmlNode *value, song->stationId = strdup (valueStr); } else if (strcmp ("albumTitle", key) == 0) { song->album = strdup (valueStr); + } else if (strcmp ("fileGain", key) == 0) { + song->fileGain = atof (valueStr); } } -- cgit v1.2.3