aboutsummaryrefslogtreecommitdiffstats
path: root/src/flac_decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-10 22:31:23 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-10 22:31:23 +0000
commit69a0b86173f0bbe58753c912075bb3ee382417db (patch)
tree734201a4c79fbb576346edea8f367d03ec30ccfa /src/flac_decode.c
parent33d112499dffd6b5a11639daf01eb31da660a78e (diff)
downloadmpd-69a0b86173f0bbe58753c912075bb3ee382417db.tar.gz
mpd-69a0b86173f0bbe58753c912075bb3ee382417db.tar.xz
mpd-69a0b86173f0bbe58753c912075bb3ee382417db.zip
trash XMMS resampling, use ESD's instead, don't understand it, but it works
git-svn-id: https://svn.musicpd.org/mpd/trunk@979 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/flac_decode.c')
-rw-r--r--src/flac_decode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/flac_decode.c b/src/flac_decode.c
index 93c114068..c3780ef58 100644
--- a/src/flac_decode.c
+++ b/src/flac_decode.c
@@ -35,7 +35,8 @@
#include <FLAC/metadata.h>
typedef struct {
- unsigned char chunk[CHUNK_SIZE];
+#define FLAC_CHUNK_SIZE 4080
+ unsigned char chunk[FLAC_CHUNK_SIZE];
int chunk_length;
float time;
int bitRate;
@@ -417,7 +418,7 @@ FLAC__StreamDecoderWriteStatus flacWrite(const FLAC__SeekableStreamDecoder *dec,
u16 = buf[c_chan][c_samp];
uc = (unsigned char *)&u16;
for(i=0;i<(data->dc->audioFormat.bits/8);i++) {
- if(data->chunk_length>=CHUNK_SIZE) {
+ if(data->chunk_length>=FLAC_CHUNK_SIZE) {
if(flacSendChunk(data)<0) {
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}