Skip to main content

Module decoder

Module decoder 

Source
Expand description

mpg123 1.32.3’s layer III decoder (layer3.c, parse.c, frame.c, synth_real.c, synth_mono.h) as libsndfile drives it: float output, MPG123_GAPLESS | MPG123_NO_FRANKENSTEIN, NEON64 synth.

Integer work (headers, side info, scalefactors, Huffman, the bit reservoir) is ported from the C. Float arrays live in the Cpu arena so the kernels generated from the reference’s machine code (dct12, dct36_neon64, dct64_real_neon64, the synths, the vectorised antialias loop) run on them directly.

Structs§

Mp3
An MP3 stream decoded as soundfile (libsndfile 1.2.2 + mpg123 1.32.3, arm64) returns it.

Functions§

decode
Decode a whole MP3 (layer III) file.
probe
Whether data holds MPEG layer III frames: two consecutive compatible headers within mpg123’s 64 KiB junk window (after any ID3v2 tag).