[−][src]Type Definition flac_sys::FLAC__StreamEncoderMetadataCallback
type FLAC__StreamEncoderMetadataCallback = Option<unsafe extern "C" fn(encoder: *const FLAC__StreamEncoder, metadata: *const FLAC__StreamMetadata, client_data: *mut c_void)>;
Signature for the metadata callback.
A function pointer matching this signature may be passed to FLAC__stream_encoder_init*_stream(). The supplied function will be called once at the end of encoding with the populated STREAMINFO structure. This is so the client can seek back to the beginning of the file and write the STREAMINFO block with the correct statistics after encoding (like minimum/maximum frame size and total samples).
\note In general, FLAC__StreamEncoder functions which change the state should not be called on the \a encoder while in the callback.
\param encoder The encoder instance calling the callback. \param metadata The final populated STREAMINFO block. \param client_data The callee's client data set through FLAC__stream_encoder_init_*().