[][src]Function flac_sys::FLAC__stream_decoder_set_md5_checking

pub unsafe extern "C" fn FLAC__stream_decoder_set_md5_checking(
    decoder: *mut FLAC__StreamDecoder,
    value: FLAC__bool
) -> FLAC__bool

Set the "MD5 signature checking" flag. If \c true, the decoder will compute the MD5 signature of the unencoded audio data while decoding and compare it to the signature from the STREAMINFO block, if it exists, during FLAC__stream_decoder_finish().

MD5 signature checking will be turned off (until the next FLAC__stream_decoder_reset()) if there is no signature in the STREAMINFO block or when a seek is attempted.

Clients that do not use the MD5 check should leave this off to speed up decoding.

\default \c false \param decoder A decoder instance to set. \param value Flag value (see above). \assert \code decoder != NULL \endcode \retval FLAC__bool \c false if the decoder is already initialized, else \c true.