From 560f4599c5238b98515bd0358d0333e4dc190b80 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 27 Jan 2009 16:47:05 +0100 Subject: piano: mp3 support Breaks api --- libpiano/src/xml.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libpiano/src/xml.c') diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c index 71b6bb1..847bc49 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -290,7 +290,13 @@ void PianoXmlParsePlaylistCb (const char *key, const xmlNode *value, song->album = strdup (valueStr); } else if (strcmp ("fileGain", key) == 0) { song->fileGain = atof (valueStr); - } + } else if (strcmp ("audioEncoding", key) == 0) { + if (strcmp (valueStr, "aacplus") == 0) { + song->audioFormat = PIANO_AF_AACPLUS; + } else if (strcmp (valueStr, "mp3") == 0) { + song->audioFormat = PIANO_AF_MP3; + } + } } /* parses userinfos sent by pandora as login response -- cgit v1.2.3