search for: myflaccoder

Displaying 1 result from an estimated 1 matches for "myflaccoder".

2012 Jul 11
1
Decoding a continues stream
...trying to decode a FLAC audio stream. I have a reader which sends raw byte data to my FLAC wrapper class. Only once the decode function below returns, the reader will send new data. Hence I want to decode until the stream is empty, but I will add new data to the stream once it is empty. *void **MyFlacCoder::**decode(char *data, int bytes) { mBuffer = input; mBufferBytes = bytes; FLAC__stream_decoder_process_until_end_of_stream(mDecoder); } * My read callback looks as follows: * FLAC__StreamDecoderReadStatus flacReadDecode(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], siz...