summaryrefslogtreecommitdiff
path: root/libpiano/src
diff options
context:
space:
mode:
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);
}
}