From 43b0ddc0c0428846ba47d686239ee5528ba2df04 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Wed, 24 Sep 2003 04:29:17 +0000 Subject: [PATCH] add OggFLAC__stream_encoder_get_resolved_state_string() --- include/OggFLAC/stream_encoder.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/OggFLAC/stream_encoder.h b/include/OggFLAC/stream_encoder.h index a0ad4e6..559f2f6 100644 --- a/include/OggFLAC/stream_encoder.h +++ b/include/OggFLAC/stream_encoder.h @@ -488,6 +488,19 @@ OggFLAC_API FLAC__StreamEncoderState OggFLAC__stream_encoder_get_FLAC_stream_enc */ OggFLAC_API FLAC__StreamDecoderState OggFLAC__stream_encoder_get_verify_decoder_state(const OggFLAC__StreamEncoder *encoder); +/** Get the current encoder state as a C string. + * This version automatically resolves + * \c OggFLAC__STREAM_ENCODER_FLAC_STREAM_ENCODER_ERROR by getting the + * FLAC stream encoder's state. + * + * \param encoder A encoder instance to query. + * \assert + * \code encoder != NULL \endcode + * \retval const char * + * The encoder state as a C string. Do not modify the contents. + */ +OggFLAC_API const char *OggFLAC__stream_encoder_get_resolved_state_string(const OggFLAC__StreamEncoder *encoder); + /** Get relevant values about the nature of a verify decoder error. * Inherited from FLAC__stream_encoder_get_verify_decoder_error_stats(). * Useful when the stream encoder state is -- 2.7.4