aboutsummaryrefslogtreecommitdiffstats
path: root/src/flac_decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-07 15:58:04 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-07 15:58:04 +0000
commit3794126e5609112d68a2e0c9cbae5a923da301b6 (patch)
treee44ad37c6b27f6f4a52b63c6c1057a860f93ff80 /src/flac_decode.c
parent9196023f14acf37ee47ac7798029270476d7d3cb (diff)
downloadmpd-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 '')
-rw-r--r--src/flac_decode.c6
1 files changed, 3 insertions, 3 deletions
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;