Gets the audio bitrate in kbps.
Gets the channel mode of this frame.
Gets the number of audio channels (1 for mono, 2 for all stereo modes).
Gets the total byte length of this frame (header + payload).
Gets whether this is an ADTS (AAC) frame rather than a standard MPEG frame.
Gets whether the audio is flagged as copyrighted.
Gets whether the audio is flagged as an original recording.
Gets whether this frame includes a padding slot.
Gets whether the header represents a valid MPEG audio frame.
Gets the MPEG layer (1, 2, or 3); 0 for ADTS.
Gets whether CRC protection is enabled for this frame.
Gets the sample rate in Hz.
Gets the number of PCM samples encoded in this frame.
Gets the MPEG version of this frame.
StaticfromReads and parses an MPEG frame header from the stream at the given offset.
The I/O stream to read from.
Byte offset within the stream at which the frame header starts.
When true, the next frame is also validated to confirm this is real audio.
A fully parsed MpegHeader; check isValid before using the result.
Parser for a single MPEG audio frame header (4 bytes).
When
checkLengthis true the parser also verifies that a second valid frame header with matching version / layer / sample-rate exists at the expected position (offset + frameLength).