diff options
Diffstat (limited to 'src/test_libOggFLAC/encoders.c')
-rw-r--r-- | src/test_libOggFLAC/encoders.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test_libOggFLAC/encoders.c b/src/test_libOggFLAC/encoders.c index d8f45461..c6d0c69a 100644 --- a/src/test_libOggFLAC/encoders.c +++ b/src/test_libOggFLAC/encoders.c @@ -431,6 +431,12 @@ static FLAC__bool test_stream_encoder() return true; } +OggFLAC__SeekableStreamEncoderReadStatus seekable_stream_encoder_read_callback_(const OggFLAC__SeekableStreamEncoder *encoder, FLAC__byte buffer[], unsigned *bytes, void *client_data) +{ + (void)encoder, (void)buffer, (void)bytes, (void)client_data; + return OggFLAC__SEEKABLE_STREAM_ENCODER_READ_STATUS_CONTINUE; +} + FLAC__SeekableStreamEncoderSeekStatus seekable_stream_encoder_seek_callback_(const OggFLAC__SeekableStreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data) { (void)encoder, (void)absolute_byte_offset, (void)client_data; @@ -567,6 +573,11 @@ static FLAC__bool test_seekable_stream_encoder() return die_ss_("returned false", encoder); printf("OK\n"); + printf("testing OggFLAC__seekable_stream_encoder_set_read_callback()... "); + if(!OggFLAC__seekable_stream_encoder_set_read_callback(encoder, seekable_stream_encoder_read_callback_)) + return die_ss_("returned false", encoder); + printf("OK\n"); + printf("testing OggFLAC__seekable_stream_encoder_set_seek_callback()... "); if(!OggFLAC__seekable_stream_encoder_set_seek_callback(encoder, seekable_stream_encoder_seek_callback_)) return die_ss_("returned false", encoder); |