FLAC__StreamEncoderState

State values for a FLAC__StreamEncoder.

The encoder's state can be obtained by calling FLAC__stream_encoder_get_state().

If the encoder gets into any other state besides \c FLAC__STREAM_ENCODER_OK or \c FLAC__STREAM_ENCODER_UNINITIALIZED, it becomes invalid for encoding and must be deleted with FLAC__stream_encoder_delete().

Values

ValueMeaning
FLAC__STREAM_ENCODER_OK0
FLAC__STREAM_ENCODER_UNINITIALIZED

< The encoder is in the normal OK state and samples can be processed.

FLAC__STREAM_ENCODER_OGG_ERROR

< The encoder is in the uninitialized state; one of the FLAC__stream_encoder_init_*() functions must be called before samples can be processed.

FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR

< An error occurred in the underlying Ogg layer.

FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA

< An error occurred in the underlying verify stream decoder; check FLAC__stream_encoder_get_verify_decoder_state().

FLAC__STREAM_ENCODER_CLIENT_ERROR

< The verify decoder detected a mismatch between the original audio signal and the decoded audio signal.

FLAC__STREAM_ENCODER_IO_ERROR

< One of the callbacks returned a fatal error.

FLAC__STREAM_ENCODER_FRAMING_ERROR

< An I/O error occurred while opening/reading/writing a file. Check \c errno.

FLAC__STREAM_ENCODER_MEMORY_ALLOCATION_ERROR

< An error occurred while writing the stream; usually, the write_callback returned an error.

Meta