diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-07 15:58:04 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-07 15:58:04 +0000 |
commit | 3794126e5609112d68a2e0c9cbae5a923da301b6 (patch) | |
tree | e44ad37c6b27f6f4a52b63c6c1057a860f93ff80 /src/decode.c | |
parent | 9196023f14acf37ee47ac7798029270476d7d3cb (diff) | |
download | mpd-3794126e5609112d68a2e0c9cbae5a923da301b6.tar.gz mpd-3794126e5609112d68a2e0c9cbae5a923da301b6.tar.xz mpd-3794126e5609112d68a2e0c9cbae5a923da301b6.zip |
new OutputBuffer abstraction stuff, implemented for mp3, now need to
implement in other decoders
git-svn-id: https://svn.musicpd.org/mpd/trunk@940 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r-- | src/decode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decode.c b/src/decode.c index fc0bd84af..221ca4a9b 100644 --- a/src/decode.c +++ b/src/decode.c @@ -112,7 +112,7 @@ int calculateCrossFadeChunks(PlayerControl * pc, AudioFormat * af) { } int waitOnDecode(PlayerControl * pc, AudioFormat * af, DecoderControl * dc, - Buffer * cb) + OutputBuffer * cb) { while(decode_pid && *decode_pid>0 && dc->start) my_usleep(1000); @@ -143,7 +143,7 @@ int waitOnDecode(PlayerControl * pc, AudioFormat * af, DecoderControl * dc, } void decodeSeek(PlayerControl * pc, AudioFormat * af, DecoderControl * dc, - Buffer * cb) + OutputBuffer * cb) { if(decode_pid && *decode_pid>0) { cb->next = -1; @@ -217,7 +217,7 @@ void decodeSeek(PlayerControl * pc, AudioFormat * af, DecoderControl * dc, return; \ } -int decoderInit(PlayerControl * pc, Buffer * cb, AudioFormat *af, +int decoderInit(PlayerControl * pc, OutputBuffer * cb, AudioFormat *af, DecoderControl * dc) { int pid; int ret; @@ -311,7 +311,7 @@ int decoderInit(PlayerControl * pc, Buffer * cb, AudioFormat *af, * parent process does playing audio */ void decode() { - Buffer * cb; + OutputBuffer * cb; PlayerControl * pc; AudioFormat * af; DecoderControl * dc; |