[][src]Function flac_sys::FLAC__metadata_get_streaminfo

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

Read the STREAMINFO 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 streaminfo A pointer to space for the STREAMINFO block. Since FLAC__StreamMetadata is a simple structure with no memory allocation involved, you pass the address of an existing structure. It need not be initialized. \assert \code filename != NULL \endcode \code streaminfo != NULL \endcode \retval FLAC__bool \c true if a valid STREAMINFO block was read from \a filename. Returns \c false if there was a memory allocation error, a file decoder error, or the file contained no STREAMINFO block. (A memory allocation error is possible because this function must set up a file decoder.)