Skip to main content

Module header

Module header 

Source
Expand description

MP3 frame header — the 32-bit sync header that prefixes every frame.

 syncword(11) | version(2) | layer(2) | crc(1)
 bitrate_idx(4) | samplerate_idx(2) | padding(1) | private(1)
 channel_mode(2) | mode_ext(2) | copyright(1) | original(1) | emphasis(2)

From these fields we derive the frame size in bytes and the per-frame sample count, which the demux/packetizer needs to walk the stream.

Structs§

FrameHeader
A parsed Layer III frame header.

Enums§

MpegVersion
MPEG audio version (the sample-rate base differs per version).