From 524abb97453f2140fcd3a7fa66d9d43851af19e1 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 6 Jun 2012 21:13:43 +0200 Subject: piano: Select quality instead of audio format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pandora limited the audio formats we can request explicitly. Don’t rely on this and use the formats available with the given partner credentials. Closes #271. --- src/libpiano/piano.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/libpiano/piano.h') diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h index d8bebcc..4ea164d 100644 --- a/src/libpiano/piano.h +++ b/src/libpiano/piano.h @@ -65,10 +65,15 @@ typedef enum { PIANO_AF_UNKNOWN = 0, PIANO_AF_AACPLUS = 1, PIANO_AF_MP3 = 2, - PIANO_AF_MP3_HI = 3, - PIANO_AF_AACPLUS_LO = 4, } PianoAudioFormat_t; +typedef enum { + PIANO_AQ_UNKNOWN = 0, + PIANO_AQ_LOW = 1, + PIANO_AQ_MEDIUM = 2, + PIANO_AQ_HIGH = 3, +} PianoAudioQuality_t; + typedef struct PianoSong { char *artist; char *stationId; @@ -178,7 +183,7 @@ typedef struct { typedef struct { PianoStation_t *station; - PianoAudioFormat_t format; + PianoAudioQuality_t quality; PianoSong_t *retPlaylist; } PianoRequestDataGetPlaylist_t; @@ -245,6 +250,7 @@ typedef enum { PIANO_RET_CONTINUE_REQUEST = 3, PIANO_RET_OUT_OF_MEMORY = 4, PIANO_RET_INVALID_LOGIN = 5, + PIANO_RET_QUALITY_UNAVAILABLE = 6, /* pandora error codes */ PIANO_RET_P_INTERNAL = PIANO_RET_OFFSET+0, -- cgit v1.2.3