Interface: FLAC__StreamEncoderInitStatus

Flac. FLAC__StreamEncoderInitStatus

Properties:
Name Type Description
0 "FLAC__STREAM_ENCODER_INIT_STATUS_OK" Initialization was successful.
1 "FLAC__STREAM_ENCODER_INIT_STATUS_ENCODER_ERROR" General failure to set up encoder; call FLAC__stream_encoder_get_state() for cause.
2 "FLAC__STREAM_ENCODER_INIT_STATUS_UNSUPPORTED_CONTAINER" The library was not compiled with support for the given container format.
3 "FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_CALLBACKS" A required callback was not supplied.
4 "FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_NUMBER_OF_CHANNELS" The encoder has an invalid setting for number of channels.
5 "FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_BITS_PER_SAMPLE" The encoder has an invalid setting for bits-per-sample. FLAC supports 4-32 bps but the reference encoder currently supports only up to 24 bps.
6 "FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_SAMPLE_RATE" The encoder has an invalid setting for the input sample rate.
7 "FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_BLOCK_SIZE" The encoder has an invalid setting for the block size.
8 "FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_MAX_LPC_ORDER" The encoder has an invalid setting for the maximum LPC order.
9 "FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_QLP_COEFF_PRECISION" The encoder has an invalid setting for the precision of the quantized linear predictor coefficients.
10 "FLAC__STREAM_ENCODER_INIT_STATUS_BLOCK_SIZE_TOO_SMALL_FOR_LPC_ORDER" The specified block size is less than the maximum LPC order.
11 "FLAC__STREAM_ENCODER_INIT_STATUS_NOT_STREAMABLE" The encoder is bound to the Subset but other settings violate it.
12 "FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_METADATA" The metadata input to the encoder is invalid, in one of the following ways: FLAC__stream_encoder_set_metadata() was called with a null pointer but a block count > 0 One of the metadata blocks contains an undefined type It contains an illegal CUESHEET as checked by FLAC__format_cuesheet_is_legal() It contains an illegal SEEKTABLE as checked by FLAC__format_seektable_is_legal() It contains more than one SEEKTABLE block or more than one VORBIS_COMMENT block
13 "FLAC__STREAM_ENCODER_INIT_STATUS_ALREADY_INITIALIZED" FLAC__stream_encoder_init_*() was called when the encoder was already initialized, usually because FLAC__stream_encoder_finish() was not called.