Expand description
For handling a FLAC file’s metadata blocks
Many items are capitalized simply because they were capitalized in the original FLAC format documentation.
§Metadata Blocks
FLAC supports seven different metadata block types
| Block Type | Purpose |
|---|---|
| STREAMINFO | stream information such as sample rate, channel count, etc. |
| PADDING | empty data which can easily be resized as needed |
| APPLICATION | application-specific data such as foreign RIFF WAVE chunks |
| SEEKTABLE | to allow for more efficient seeking within a FLAC file |
| VORBIS_COMMENT | textual metadata such as track title, artist name, album name, etc. |
| CUESHEET | the original disc’s layout, for CD images |
| PICTURE | embedded image files such as cover art |
Modules§
- contiguous
- Types for collections which must be contiguous
- cuesheet
- Types related to the CUESHEET metadata block
- fields
- Vorbis comment metadata tag fields
Structs§
- Application
- An APPLICATION metadata block
- Block
Header - A FLAC metadata block header
- Block
Iterator - An iterator over FLAC metadata blocks
- Block
List - A collection of metadata blocks
- Block
Size - A 24-bit block size value, with safeguards against overflow
- Block
Size Overflow - An error that occurs when trying to build an overly large
BlockSize - Channel
Mask - The channel mask
- Padding
- A PADDING metadata block
- Picture
- A PICTURE metadata block
- Seek
Table - A SEEKTABLE metadata block
- Streaminfo
- A STREAMINFO metadata block
- Vorbis
Comment - A VORBIS_COMMENT metadata block
Enums§
- Block
- Any possible FLAC metadata block
- Block
Ref - A shared reference to a metadata block
- Block
Type - A defined FLAC metadata block type
- Channel
- An individual channel mask channel
- Cuesheet
- A CUESHEET metadata block
- Cuesheet
Error - An error when trying to parse cue sheet data
- Invalid
Picture - An error when trying to identify a picture’s metrics
- Optional
Block Type - A block type for optional FLAC metadata blocks
- Picture
Type - Defined variants of PICTURE type
- Seek
Point - An individual SEEKTABLE seek point
Traits§
- AsBlock
Ref - A trait for items which can make cheap
BlockRefvalues. - Metadata
- A trait for indicating various pieces of FLAC stream metadata
- Metadata
Block - A type of FLAC metadata block
- Optional
Metadata Block - A type of FLAC metadata block which is not required
Functions§
- block
- Returns first instance of the given block from the given path
- blocks
- Returns iterator of blocks from the given path
- read_
block - Returns first instance of the given block from the given reader
- read_
blocks - Returns iterator of blocks from the given reader
- update
- Given a Path, attempts to update FLAC metadata blocks
- update_
file - Given open file, attempts to update its metadata blocks
- write_
blocks - Writes iterator of blocks to the given writer.