From e8d8fde79b5a983ab106290bac745121ccdab70b Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Wed, 17 Mar 2004 21:20:49 +0000 Subject: [PATCH] add OggFLAC__ogg_decoder_aspect_get_unconsumed_bytes() --- src/libOggFLAC/ogg_decoder_aspect.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libOggFLAC/ogg_decoder_aspect.c b/src/libOggFLAC/ogg_decoder_aspect.c index a0f34a67..3c86cfed 100644 --- a/src/libOggFLAC/ogg_decoder_aspect.c +++ b/src/libOggFLAC/ogg_decoder_aspect.c @@ -91,6 +91,13 @@ void OggFLAC__ogg_decoder_aspect_reset(OggFLAC__OggDecoderAspect *aspect) aspect->have_working_page = false; } +/*@@@@@@ needed? */ +unsigned OggFLAC__ogg_decoder_aspect_get_unconsumed_bytes(OggFLAC__OggDecoderAspect *aspect) +{ + FLAC__ASSERT(0 != aspect); + return aspect->sync_state.fill - aspect->sync_state.returned; +} + OggFLAC__OggDecoderAspectReadStatus OggFLAC__ogg_decoder_aspect_read_callback_wrapper(OggFLAC__OggDecoderAspect *aspect, FLAC__byte buffer[], unsigned *bytes, OggFLAC__OggDecoderAspectReadCallbackProxy read_callback, void *decoder, void *client_data) { static const unsigned OGG_BYTES_CHUNK = 8192;