11
EasyFLAC__StreamDecoder *decoder;
14
long totalsamples; /* per channel, of course */
16
FLAC__StreamMetadata *comments;
18
FILE *in; /* Cache the FILE pointer so the FLAC read callback can use it */
19
int eos; /* End of stream read */
22
/* Buffer for decoded audio */
23
float **buf; /* channels by buf_len array */
25
int buf_start; /* Offset to start of audio data */
26
int buf_fill; /* Number of bytes of audio data in buffer */
28
/* Buffer for input data we already read in the id phase */
29
unsigned char *oldbuf;
35
int flac_id(unsigned char *buf, int len);
36
int oggflac_id(unsigned char *buf, int len);
37
int flac_open(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen);
38
void flac_close(void *);
40
long flac_read(void *, float **buffer, int samples);