[][src]Function flac_sys::FLAC__stream_encoder_set_total_samples_estimate

pub unsafe extern "C" fn FLAC__stream_encoder_set_total_samples_estimate(
    encoder: *mut FLAC__StreamEncoder,
    value: FLAC__uint64
) -> FLAC__bool

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.

\default \c 0 \param encoder An encoder instance to set. \param value See above. \assert \code encoder != NULL \endcode \retval FLAC__bool \c false if the encoder is already initialized, else \c true.