|
|
| |
FLAC__StreamDecoderReadStatus | FLAC__StreamDecoderReadStatus |
realReadCallBack (FLAC__byte buffer[], | realReadCallBack (FLAC__byte buffer[], |
unsigned * bytes); |
size_t * bytes); |
| |
| |
protected: | protected: |
|
|
static FLAC__StreamDecoderReadStatus | static FLAC__StreamDecoderReadStatus |
readCallBack (const FLAC__StreamDecoder * decoder, | readCallBack (const FLAC__StreamDecoder * decoder, |
FLAC__byte buffer[], | FLAC__byte buffer[], |
unsigned * bytes, |
size_t * bytes, |
void * client_data); | void * client_data); |
| |
static void errCallBack (const FLAC__StreamDecoder * decoder, | static void errCallBack (const FLAC__StreamDecoder * decoder, |
|
|
| |
| |
FLAC__StreamDecoderReadStatus | FLAC__StreamDecoderReadStatus |
FlacStream::realReadCallBack (FLAC__byte buffer[], unsigned * bytes) |
FlacStream::realReadCallBack (FLAC__byte buffer[], size_t * bytes) |
{ | { |
*bytes = reader_read (buffer, *bytes, _datasource); | *bytes = reader_read (buffer, *bytes, _datasource); |
return *bytes > 0 ? FLAC__STREAM_DECODER_READ_STATUS_CONTINUE : | return *bytes > 0 ? FLAC__STREAM_DECODER_READ_STATUS_CONTINUE : |
|
|
FLAC__StreamDecoderReadStatus | FLAC__StreamDecoderReadStatus |
FlacStream::readCallBack (const FLAC__StreamDecoder *, | FlacStream::readCallBack (const FLAC__StreamDecoder *, |
FLAC__byte buffer[], | FLAC__byte buffer[], |
unsigned * bytes, |
size_t * bytes, |
void * client_data) | void * client_data) |
{ | { |
if (!client_data) | if (!client_data) |
|
|
FlacSeekableStream::readCallBack (const FLAC__StreamDecoder * /*decoder*/, | FlacSeekableStream::readCallBack (const FLAC__StreamDecoder * /*decoder*/, |
#endif | #endif |
FLAC__byte buffer[], | FLAC__byte buffer[], |
unsigned * bytes, |
size_t * bytes, |
void * client_data) | void * client_data) |
{ | { |
if (!client_data) | if (!client_data) |
|
Lines 114-120
class FlacSeekableStream : public FlacSt
|
Link Here
|
|---|
|
readCallBack (const FLAC__StreamDecoder * decoder, | readCallBack (const FLAC__StreamDecoder * decoder, |
#endif | #endif |
FLAC__byte buffer[], | FLAC__byte buffer[], |
unsigned * bytes, |
size_t * bytes, |
void * client_data); | void * client_data); |
| |
#ifdef LEGACY_FLAC | #ifdef LEGACY_FLAC |