add method for skipping an audio frame, plus tests

This commit is contained in:
Josh Coalson
2004-07-16 00:53:38 +00:00
parent 02d66815b8
commit 47f51b1c22
12 changed files with 283 additions and 77 deletions

View File

@@ -176,6 +176,12 @@ namespace FLAC {
return (bool)::FLAC__stream_decoder_process_until_end_of_stream(decoder_);
}
bool Stream::skip_single_frame()
{
FLAC__ASSERT(is_valid());
return (bool)::FLAC__stream_decoder_skip_single_frame(decoder_);
}
::FLAC__StreamDecoderReadStatus Stream::read_callback_(const ::FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data)
{
(void)decoder;