diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-01-27 16:47:05 +0100 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-01-27 16:47:05 +0100 |
commit | 560f4599c5238b98515bd0358d0333e4dc190b80 (patch) | |
tree | 5654cfd3e52a418411b38cea392525e4215f93db /libpiano/src/piano.h | |
parent | d52ebc8e84b24ccc9b8537c37bfa20ff810e01ca (diff) | |
download | pianobar-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.h | 8 |
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); |