diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-28 12:39:00 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-28 12:39:00 +0200 |
commit | 3b6b49c735331e58767f2635859d557058cbde18 (patch) | |
tree | 991da7cd002adb6134e7a0c7dfa6fd9cb0552ec7 /src/player.h | |
parent | 6811fd397c0e7efc00a55e49002fa08732ef4af5 (diff) | |
download | pianobar-3b6b49c735331e58767f2635859d557058cbde18.tar.gz pianobar-3b6b49c735331e58767f2635859d557058cbde18.tar.bz2 pianobar-3b6b49c735331e58767f2635859d557058cbde18.zip |
client: Use mode instead of finishedPlayback in player
Smarter solution than commit 8421cfd9886ec5ee19cde18b48853c2f9ea60c29.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/player.h b/src/player.h index 89f99f8..9e44bef 100644 --- a/src/player.h +++ b/src/player.h @@ -29,8 +29,10 @@ struct aacPlayer { char buffer[CURL_MAX_WRITE_SIZE*2]; size_t bufferFilled; size_t bufferRead; - enum {FIND_ESDS, FOUND_ESDS, AUDIO_INITIALIZED, FOUND_STSZ, - SAMPLESIZE_INITIALIZED, RECV_DATA} mode; + enum {PLAYER_FREED = 0, PLAYER_INITIALIZED, PLAYER_FOUND_ESDS, + PLAYER_AUDIO_INITIALIZED, PLAYER_FOUND_STSZ, + PLAYER_SAMPLESIZE_INITIALIZED, PLAYER_RECV_DATA, + PLAYER_FINISHED_PLAYBACK} mode; /* stsz atom: sample sizes */ unsigned int *sampleSize; size_t sampleSizeN; @@ -42,7 +44,6 @@ struct aacPlayer { /* audio out */ ao_device *audioOutDevice; char *url; - char finishedPlayback; char doQuit; char doPause; CURL *audioFd; |