mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
change "bytes" parameter of all read callbacks from "unsigned" to "size_t"
This commit is contained in:
@@ -187,7 +187,7 @@ public:
|
||||
~StreamDecoder() { }
|
||||
|
||||
// from FLAC::Decoder::Stream
|
||||
::FLAC__StreamDecoderReadStatus read_callback(FLAC__byte buffer[], unsigned *bytes);
|
||||
::FLAC__StreamDecoderReadStatus read_callback(FLAC__byte buffer[], size_t *bytes);
|
||||
::FLAC__StreamDecoderSeekStatus seek_callback(FLAC__uint64 absolute_byte_offset);
|
||||
::FLAC__StreamDecoderTellStatus tell_callback(FLAC__uint64 *absolute_byte_offset);
|
||||
::FLAC__StreamDecoderLengthStatus length_callback(FLAC__uint64 *stream_length);
|
||||
@@ -199,9 +199,9 @@ public:
|
||||
bool test_respond(bool is_ogg);
|
||||
};
|
||||
|
||||
::FLAC__StreamDecoderReadStatus StreamDecoder::read_callback(FLAC__byte buffer[], unsigned *bytes)
|
||||
::FLAC__StreamDecoderReadStatus StreamDecoder::read_callback(FLAC__byte buffer[], size_t *bytes)
|
||||
{
|
||||
const unsigned requested_bytes = *bytes;
|
||||
const size_t requested_bytes = *bytes;
|
||||
|
||||
if(error_occurred_)
|
||||
return ::FLAC__STREAM_DECODER_READ_STATUS_ABORT;
|
||||
|
||||
@@ -94,14 +94,14 @@ public:
|
||||
~StreamEncoder() { }
|
||||
|
||||
// from FLAC::Encoder::Stream
|
||||
::FLAC__StreamEncoderReadStatus read_callback(FLAC__byte buffer[], unsigned *bytes);
|
||||
::FLAC__StreamEncoderReadStatus read_callback(FLAC__byte buffer[], size_t *bytes);
|
||||
::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame);
|
||||
::FLAC__StreamEncoderSeekStatus seek_callback(FLAC__uint64 absolute_byte_offset);
|
||||
::FLAC__StreamEncoderTellStatus tell_callback(FLAC__uint64 *absolute_byte_offset);
|
||||
void metadata_callback(const ::FLAC__StreamMetadata *metadata);
|
||||
};
|
||||
|
||||
::FLAC__StreamEncoderReadStatus StreamEncoder::read_callback(FLAC__byte buffer[], unsigned *bytes)
|
||||
::FLAC__StreamEncoderReadStatus StreamEncoder::read_callback(FLAC__byte buffer[], size_t *bytes)
|
||||
{
|
||||
(void)buffer, (void)bytes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user