From 3794126e5609112d68a2e0c9cbae5a923da301b6 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 7 May 2004 15:58:04 +0000 Subject: 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 --- src/decode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/decode.c') 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; -- cgit v1.2.3