summaryrefslogtreecommitdiff
path: root/libpiano/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-24 11:27:37 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-24 11:27:37 +0200
commita0fece94bda85861676115dcd942430f77bac253 (patch)
treefd4981a15c74a1ba5fbd8c62a81e570f3bc6e581 /libpiano/src
parent29d6dcf6b9c90c0997ecf269b28ee4e9c89c0821 (diff)
downloadpianobar-windows-a0fece94bda85861676115dcd942430f77bac253.tar.gz
pianobar-windows-a0fece94bda85861676115dcd942430f77bac253.tar.bz2
pianobar-windows-a0fece94bda85861676115dcd942430f77bac253.zip
Initial ReplayGain work (including anti-clipping)
Could be tuned...
Diffstat (limited to 'libpiano/src')
-rw-r--r--libpiano/src/piano.h2
-rw-r--r--libpiano/src/xml.c2
2 files changed, 3 insertions, 1 deletions
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);
}
}