summaryrefslogtreecommitdiff
path: root/libpiano/src/piano.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-01-27 16:47:05 +0100
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-01-27 16:47:05 +0100
commit560f4599c5238b98515bd0358d0333e4dc190b80 (patch)
tree5654cfd3e52a418411b38cea392525e4215f93db /libpiano/src/piano.h
parentd52ebc8e84b24ccc9b8537c37bfa20ff810e01ca (diff)
downloadpianobar-560f4599c5238b98515bd0358d0333e4dc190b80.tar.gz
pianobar-560f4599c5238b98515bd0358d0333e4dc190b80.tar.bz2
pianobar-560f4599c5238b98515bd0358d0333e4dc190b80.zip
piano: mp3 support
Breaks api
Diffstat (limited to 'libpiano/src/piano.h')
-rw-r--r--libpiano/src/piano.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libpiano/src/piano.h b/libpiano/src/piano.h
index f540d8b..cc92c38 100644
--- a/libpiano/src/piano.h
+++ b/libpiano/src/piano.h
@@ -73,6 +73,10 @@ typedef struct PianoStation PianoStation_t;
enum PianoSongRating {PIANO_RATE_BAN, PIANO_RATE_LOVE, PIANO_RATE_NONE};
typedef enum PianoSongRating PianoSongRating_t;
+/* UNKNOWN should be 0, because memset sets audio format to 0 */
+typedef enum {PIANO_AF_UNKNOWN = 0, PIANO_AF_AACPLUS, PIANO_AF_MP3}
+ PianoAudioFormat_t;
+
struct PianoSong {
char *artist;
//char **genre;
@@ -105,6 +109,7 @@ struct PianoSong {
char *focusTraitId;
char *identity;
//int score; /* only used for search results */
+ PianoAudioFormat_t audioFormat;
struct PianoSong *next;
};
@@ -165,7 +170,8 @@ PianoReturn_t PianoConnect (PianoHandle_t *ph, const char *user,
const char *password, char secureLogin);
PianoReturn_t PianoGetStations (PianoHandle_t *ph);
-PianoReturn_t PianoGetPlaylist (PianoHandle_t *ph, const char *stationId);
+PianoReturn_t PianoGetPlaylist (PianoHandle_t *ph, const char *stationId,
+ PianoAudioFormat_t);
PianoReturn_t PianoRateTrack (PianoHandle_t *ph, PianoSong_t *song,
PianoSongRating_t rating);