Signature for the metadata callback.
Signature for the progress callback.
Signature for the read callback.
Signature for the seek callback.
Signature for the tell callback.
Signature for the write callback.
Possible return values for the FLAC__stream_encoder_init_*() functions.
Return values for the FLAC__StreamEncoder read callback.
Return values for the FLAC__StreamEncoder seek callback.
State values for a FLAC__StreamEncoder.
Return values for the FLAC__StreamEncoder tell callback.
Return values for the FLAC__StreamEncoder write callback.
Free an encoder instance. Deletes the object pointed to by \a encoder.
Finish the encoding process. Flushes the encoding buffer, releases resources, resets the encoder settings to their defaults, and returns the encoder state to FLAC__STREAM_ENCODER_UNINITIALIZED. Note that this can generate one or more write callbacks before returning, and will generate a metadata callback.
Get the input sample resolution setting.
Get the blocksize setting.
Get the number of input channels being processed.
Get the "escape coding" flag.
Get the exhaustive model search flag.
Get the "mid/side stereo coding" flag.
Get the qlp coefficient precision search flag.
Get the "adaptive mid/side switching" flag.
Get the maximum LPC order setting.
Get maximum residual partition order setting.
Get the minimum residual partition order setting.
Get the quantized linear predictor coefficient precision setting.
Get the current encoder state as a C string. This version automatically resolves \c FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR by getting the verify decoder's state.
Get the Rice parameter search distance setting.
Get the input sample rate setting.
Get the current encoder state.
Get the <A HREF="../format.html#subset>Subset</A> flag.
Get the previously set estimate of the total samples to be encoded. The encoder merely mimics back the value given to FLAC__stream_encoder_set_total_samples_estimate() since it has no other way of knowing how many samples the client will encode.
Get the "verify" flag.
Get relevant values about the nature of a verify decoder error. Useful when the stream encoder state is \c FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR. The arguments should be addresses in which the stats will be returned, or NULL if value is not desired.
Get the state of the verify stream decoder. Useful when the stream encoder state is \c FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR.
Initialize the encoder instance to encode native FLAC files.
Initialize the encoder instance to encode native FLAC files.
Initialize the encoder instance to encode Ogg FLAC files.
Initialize the encoder instance to encode Ogg FLAC files.
Initialize the encoder instance to encode Ogg FLAC streams.
Initialize the encoder instance to encode native FLAC streams.
Create a new stream encoder instance. The instance is created with default settings; see the individual FLAC__stream_encoder_set_*() functions for each setting's default.
Submit data for encoding. This version allows you to supply the input data via an array of pointers, each pointer pointing to an array of \a samples samples representing one channel. The samples need not be block-aligned, but each channel should have the same number of samples. Each sample should be a signed integer, right-justified to the resolution set by FLAC__stream_encoder_set_bits_per_sample(). For example, if the resolution is 16 bits per sample, the samples should all be in the range [-32768,32767].
Submit data for encoding. This version allows you to supply the input data where the channels are interleaved into a single array (i.e. channel0_sample0, channel1_sample0, ... , channelN_sample0, channel0_sample1, ...). The samples need not be block-aligned but they must be sample-aligned, i.e. the first value should be channel0_sample0 and the last value channelN_sampleM. Each sample should be a signed integer, right-justified to the resolution set by FLAC__stream_encoder_set_bits_per_sample(). For example, if the resolution is 16 bits per sample, the samples should all be in the range [-32768,32767].
Sets the apodization function(s) the encoder will use when windowing audio data for LPC analysis.
Set the sample resolution of the input to be encoded.
Set the blocksize to use while encoding.
Set the number of channels to be encoded.
Set the compression level
Deprecated. Setting this value has no effect.
Set to \c false to let the encoder estimate the best model order based on the residual signal energy, or \c true to force the encoder to evaluate all order models and select the best.
Set to \c true to enable mid-side encoding on stereo input. The number of channels must be 2 for this to have any effect. Set to \c false to use only independent channel coding.
Set to \c false to use only the specified quantized linear predictor coefficient precision, or \c true to search neighboring precision values and use the best one.
Set to \c true to enable adaptive switching between mid-side and left-right encoding on stereo input. Set to \c false to use exhaustive searching. Setting this to \c true requires FLAC__stream_encoder_set_do_mid_side_stereo() to also be set to \c true in order to have any effect.
Set the maximum LPC order, or \c 0 to use only the fixed predictors.
Set the maximum partition order to search when coding the residual. This is used in tandem with FLAC__stream_encoder_set_min_residual_partition_order().
Set the metadata blocks to be emitted to the stream before encoding. A value of \c NULL, \c 0 implies no metadata; otherwise, supply an array of pointers to metadata blocks. The array is non-const since the encoder may need to change the \a is_last flag inside them, and in some cases update seek point offsets. Otherwise, the encoder will not modify or free the blocks. It is up to the caller to free the metadata blocks after encoding finishes.
Set the minimum partition order to search when coding the residual. This is used in tandem with FLAC__stream_encoder_set_max_residual_partition_order().
Set the serial number for the FLAC stream to use in the Ogg container.
Set the precision, in bits, of the quantized linear predictor coefficients, or \c 0 to let the encoder select it based on the blocksize.
Deprecated. Setting this value has no effect.
Set the sample rate (in Hz) of the input to be encoded.
Set the <A HREF="../format.html#subset">Subset</A> flag. If \c true, the encoder will comply with the Subset and will check the settings during FLAC__stream_encoder_init_*() to see if all settings comply. If \c false, the settings may take advantage of the full range that the format allows.
Set an estimate of the total samples that will be encoded. This is merely an estimate and may be set to \c 0 if unknown. This value will be written to the STREAMINFO block before encoding, and can remove the need for the caller to rewrite the value later if the value is known before encoding.
Set the "verify" flag. If \c true, the encoder will verify it's own encoded output by feeding it through an internal decoder and comparing the original signal against the decoded signal. If a mismatch occurs, the process call will return \c false. Note that this will slow the encoding process by the extra time required for decoding and comparison.
Maps a FLAC__StreamEncoderInitStatus to a C string.
Maps a FLAC__StreamEncoderReadStatus to a C string.
Maps a FLAC__StreamEncoderSeekStatus to a C string.
Maps a FLAC__StreamEncoderState to a C string.
Maps a FLAC__StreamEncoderTellStatus to a C string.
Maps a FLAC__StreamEncoderWriteStatus to a C string.
The opaque structure definition for the stream encoder type. See the \link flac_stream_encoder stream encoder module \endlink for a detailed description.
class FLAC__StreamEncoder