Skip to main content

Module flac

Module flac 

Source
Expand description

FLAC.

Parse and serialize the FLAC STREAMINFO metadata block (RFC 9639 §8.2), the codec’s configuration record. Config::description builds the WebCodecs description (the fLaC stream marker followed by the STREAMINFO block) so a browser can initialize a decoder from the catalog alone. Import publishes raw FLAC frames to a moq broadcast.

Structs§

Config
Typed FLAC configuration mirroring the fields of a STREAMINFO metadata block (RFC 9639 §8.2).
Import
FLAC importer.

Enums§

Error
FLAC parsing errors.

Functions§

config
Build a catalog config from a FLAC header (the fLaC marker plus STREAMINFO), keeping init verbatim as the catalog description (a decoder needs it). Errors on a malformed or empty buffer.

Type Aliases§

Result
A result using this module’s error type.