[][src]Function flac_sys::FLAC__metadata_get_tags

pub unsafe extern "C" fn FLAC__metadata_get_tags(
    filename: *const c_char,
    tags: *mut *mut FLAC__StreamMetadata
) -> FLAC__bool

Read the VORBIS_COMMENT metadata block of the given FLAC file. This function will try to skip any ID3v2 tag at the head of the file.

\param filename The path to the FLAC file to read. \param tags The address where the returned pointer will be stored. The \a tags object must be deleted by the caller using FLAC__metadata_object_delete(). \assert \code filename != NULL \endcode \code tags != NULL \endcode \retval FLAC__bool \c true if a valid VORBIS_COMMENT block was read from \a filename, and \a *tags will be set to the address of the metadata structure. Returns \c false if there was a memory allocation error, a file decoder error, or the file contained no VORBIS_COMMENT block, and \a *tags will be set to \c NULL.