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/flac_decode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/flac_decode.c') diff --git a/src/flac_decode.c b/src/flac_decode.c index 9760bcb11..ee9255efe 100644 --- a/src/flac_decode.c +++ b/src/flac_decode.c @@ -37,7 +37,7 @@ typedef struct { float time; int bitRate; FLAC__uint64 position; - Buffer * cb; + OutputBuffer * cb; AudioFormat * af; DecoderControl * dc; char * file; @@ -65,7 +65,7 @@ FLAC__SeekableStreamDecoderLengthStatus flacLength( const FLAC__SeekableStreamDecoder *, FLAC__uint64 *, void *); FLAC__bool flacEOF(const FLAC__SeekableStreamDecoder *, void *); -void flacPlayFile(char *file, Buffer * cb, AudioFormat * af, +void flacPlayFile(char *file, OutputBuffer * cb, AudioFormat * af, DecoderControl *dc) { FLAC__SeekableStreamDecoder * flacDec; @@ -392,7 +392,7 @@ int getFlacTotalTime(char * file) { return (int)(totalTime+0.5); } -int flac_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) { +int flac_decode(OutputBuffer * cb, AudioFormat * af, DecoderControl * dc) { if(flac_getAudioFormatAndTime(dc->file,af,&(cb->totalTime))<0) { ERROR("\"%s\" doesn't seem to be a flac\n",dc->file); return -1; -- cgit v1.2.3