search for: flacreaddecode

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

2012 Jul 11
1
Decoding a continues stream
...ut 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[], size_t *bytes, void *client) { MyFlacCoder *coder = (MyFlacCoder*) client; int size =min(*bytes, coder->mBufferBytes); if(size <= 0) { *bytes = 0; return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STR...