FLAC__StreamEncoderMetadataCallback

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_*().

extern (C) nothrow
alias FLAC__StreamEncoderMetadataCallback = void function(const FLAC__StreamEncoder* encoder, const FLAC__StreamMetadata* metadata, void* client_data)

Meta