summaryrefslogtreecommitdiff
path: root/src/libpiano
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2012-05-04 20:53:29 +0200
committerLars-Dominik Braun <lars@6xq.net>2012-05-04 20:53:29 +0200
commitd24480e491075150634c04c52d2c9efef9244492 (patch)
tree9d14041cb141e35381a4d179e1d0c383562f8000 /src/libpiano
parent0fda775ebd32b230179c200b89ebd520d9a9e4a2 (diff)
downloadpianobar-d24480e491075150634c04c52d2c9efef9244492.tar.gz
pianobar-d24480e491075150634c04c52d2c9efef9244492.tar.bz2
pianobar-d24480e491075150634c04c52d2c9efef9244492.zip
Lofi AAC support
32kbit/s. Closes #233.
Diffstat (limited to 'src/libpiano')
-rw-r--r--src/libpiano/piano.h3
-rw-r--r--src/libpiano/request.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h
index c8c01db..249061b 100644
--- a/src/libpiano/piano.h
+++ b/src/libpiano/piano.h
@@ -65,7 +65,8 @@ typedef enum {
PIANO_AF_UNKNOWN = 0,
PIANO_AF_AACPLUS = 1,
PIANO_AF_MP3 = 2,
- PIANO_AF_MP3_HI = 3
+ PIANO_AF_MP3_HI = 3,
+ PIANO_AF_AACPLUS_LO = 4,
} PianoAudioFormat_t;
typedef struct PianoSong {
diff --git a/src/libpiano/request.c b/src/libpiano/request.c
index 427cc2d..2e17872 100644
--- a/src/libpiano/request.c
+++ b/src/libpiano/request.c
@@ -42,6 +42,10 @@ THE SOFTWARE.
*/
static const char *PianoAudioFormatToString (PianoAudioFormat_t format) {
switch (format) {
+ case PIANO_AF_AACPLUS_LO:
+ return "HTTP_32_AACPLUS";
+ break;
+
case PIANO_AF_AACPLUS:
return "HTTP_64_AACPLUS";
break;