Audio File Metadata
Overview
AudioFileMetadata includes:
container:AudioFileFormat(Wav, Aiff, Au, Mp3)sampleRate,channelsencoding:AudioEncodingInfo(PCM or compressed)duration: exact for PCM containers; Xing/estimate for MP3tags:AudioTags(title, artist, album, and arawmap)
Encoding info
Compressed is sealed. New codecs get their own subtypes when support lands.
Tags by format
WAV
Technical fields come from the fmt chunk. Tags come from a LIST/INFO chunk when present (INAM title, IART artist, ICMT comment, and so on). Unmapped INFO ids stay in tags.raw.
AIFF
Technical fields come from COMM. Text chunks: NAME (title), AUTH (artist), ANNO (comment).
AU
Header only. tags is AudioTags.Empty.
MP3
Technical fields come from the first frame header plus Xing/VBRI when present. Tags: ID3v2 first, then ID3v1 fallback. Unmapped frames are kept in tags.raw (for example TPE2).
Notes
Metadata parsing does not decode the full audio payload.
Format resolution follows the same magic-then-extension rules as file loading. See Audio File I/O.