diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-06-06 21:13:43 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-06-09 15:43:43 +0200 |
commit | 524abb97453f2140fcd3a7fa66d9d43851af19e1 (patch) | |
tree | 814e33a0d04137332f5a341721f96d4f8cccc9e2 /src/player.c | |
parent | b32348d88f700f4a3b5fb3a95f7ee40336952230 (diff) | |
download | pianobar-524abb97453f2140fcd3a7fa66d9d43851af19e1.tar.gz pianobar-524abb97453f2140fcd3a7fa66d9d43851af19e1.tar.bz2 pianobar-524abb97453f2140fcd3a7fa66d9d43851af19e1.zip |
piano: Select quality instead of audio format
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.
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/player.c b/src/player.c index 3877906..0e249dc 100644 --- a/src/player.c +++ b/src/player.c @@ -428,7 +428,6 @@ void *BarPlayerThread (void *data) { switch (player->audioFormat) { #ifdef ENABLE_FAAD - case PIANO_AF_AACPLUS_LO: case PIANO_AF_AACPLUS: player->aacHandle = NeAACDecOpen(); /* set aac conf */ @@ -443,7 +442,6 @@ void *BarPlayerThread (void *data) { #ifdef ENABLE_MAD case PIANO_AF_MP3: - case PIANO_AF_MP3_HI: mad_stream_init (&player->mp3Stream); mad_frame_init (&player->mp3Frame); mad_synth_init (&player->mp3Synth); @@ -472,7 +470,6 @@ void *BarPlayerThread (void *data) { switch (player->audioFormat) { #ifdef ENABLE_FAAD - case PIANO_AF_AACPLUS_LO: case PIANO_AF_AACPLUS: NeAACDecClose(player->aacHandle); free (player->sampleSize); @@ -481,7 +478,6 @@ void *BarPlayerThread (void *data) { #ifdef ENABLE_MAD case PIANO_AF_MP3: - case PIANO_AF_MP3_HI: mad_synth_finish (&player->mp3Synth); mad_frame_finish (&player->mp3Frame); mad_stream_finish (&player->mp3Stream); |