Expand description
Read and write DSF files: header parsing and ID3v2 metadata.
Audio payload bytes are never rewritten when editing tags.
Re-exports§
pub use self;
Structs§
- DsfHeader
- The fixed-size DSF header:
DSDchunk,fmtchunk anddatachunk header. - FrameId
- A validated ID3v2 text-frame identifier (
T???, excludingTXXX). - Picture
- A front-cover image to embed (
APIC). - Tag
- Re-exported so callers use exactly the
id3version this crate was built with. An ID3 tag containing zero or moreFrames. - TagEdit
- A set of per-frame changes. Frames not mentioned are preserved.
- Track
- A track’s place on its disc: number and, if known, how many tracks there are.
- Write
Options - Options for tag writes.
Enums§
- Change
- What to do with a single frame.
- Error
- Errors produced by this crate.
- Field
- A well-known field of a track’s tag.
- Target
- The kind of frame a
Fieldis stored in. - Version
- Re-exported so callers use exactly the
id3version this crate was built with. Denotes the version of a tag.
Constants§
- AUDIO_
OFFSET - Offset of the first audio byte in a DSF file (92).
- DATA_
CHUNK_ HEADER_ LEN - Size of the
datachunk header, whichdata_chunk_sizecounts along with the audio.
Traits§
Functions§
- custom_
fields - The user-defined text frames (
TXXX) as(description, value)pairs. - read_
path - Convenience: read the tag from a path.
- read_
tag - Reads the ID3v2 tag, or
Noneif the file has none. - read_
track - The track position from the
TRCKframe, if present and well formed. - remove_
tag - Removes the tag and zeroes the metadata pointer.
- text
- The text of frame
id, with multiple values joined by"; ".Noneif absent. - text_
frames - Every text frame in the tag (except user-defined
TXXXframes), in tag order. - update_
path - Convenience: apply
editto the file atpath. - update_
tag - Applies
editto the existing tag (creating one if absent), preserving all other frames. - write_
tag - Replaces the whole tag.
Type Aliases§
- Result
- Crate-wide result alias.