Displaying 1 result from an estimated 1 matches for "mbufferbyt".
Did you mean:
mbufferbytes
2012 Jul 11
1
Decoding a continues stream
...o 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[], size_t *bytes, void *client)
{
MyFlacCoder *coder = (MyFlacCoder*) client;...