diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-05-03 19:57:20 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-05-03 19:57:20 +0200 |
commit | 3edbc412342070bbfd1b9fe3899213912e93411b (patch) | |
tree | 9e3aa29f881bfa7281c82fe51012d778b024fcf2 /src/player.h | |
parent | 096975db943e4422a9a0afd57d785d4f3ade97f0 (diff) | |
download | pianobar-3edbc412342070bbfd1b9fe3899213912e93411b.tar.gz pianobar-3edbc412342070bbfd1b9fe3899213912e93411b.tar.bz2 pianobar-3edbc412342070bbfd1b9fe3899213912e93411b.zip |
Switch to libwaitress
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/player.h b/src/player.h index ec77f16..0d44637 100644 --- a/src/player.h +++ b/src/player.h @@ -26,8 +26,6 @@ THE SOFTWARE. #include "config.h" -#include <curl/curl.h> - #ifdef ENABLE_FAAD #include <neaacdec.h> #endif @@ -38,13 +36,15 @@ THE SOFTWARE. #include <ao/ao.h> #include <pthread.h> + #include <piano.h> +#include <waitress.h> #define BAR_PLAYER_MS_TO_S_FACTOR 1000 struct audioPlayer { /* buffer; should be large enough */ - unsigned char buffer[CURL_MAX_WRITE_SIZE*2]; + unsigned char buffer[WAITRESS_RECV_BUFFER*2]; size_t bufferFilled; size_t bufferRead; size_t bytesReceived; @@ -85,8 +85,7 @@ struct audioPlayer { /* audio out */ ao_device *audioOutDevice; - CURL *audioFd; - char *url; + WaitressHandle_t waith; char doQuit; pthread_mutex_t pauseMutex; |