Documentation
¶
Overview ¶
Package audio reads metadata out of audio containers.
SniffContainer works out the format from the file's first bytes, and Parse hands the data to that format's reader — MP3/ID3, FLAC, Ogg, WAVE, AIFF, AAC, AC-3, WMA/ASF, or MP4 — which fills in a Report: the common fields every format shares, the raw per-format tables, and any warnings the reader could not act on. Ported from CyberChef's lib/AudioParsers.mjs, AudioBytes.mjs and AudioMetaSchema.mjs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type Container struct {
Typ string
// contains filtered or unexported fields
}
Container is what the opening bytes of a file say it is.
func SniffContainer ¶
SniffContainer works out the container format from the file's first bytes. Some formats are named by a byte pattern at the very start, others by a four-character tag a little way in, so the two are looked for separately.