Mp3Decoder

Helpers & Utilities · AiDotNet.Audio.Codecs

An MPEG-1/2/2.5 Layer III (MP3) decoder: frame synchronization, side information, the bit reservoir, scale factors, Huffman decoding and requantization, mid/side and intensity stereo, reordering, alias reduction, the hybrid IMDCT and the polyphase synthesis filterbank.

For Beginners

MP3 stores audio compactly; Decode turns an MP3 file’s bytes back into samples in [−1, 1].

How It Works

A port of the scalar path of minimp3 by Lion (lieff), released into the public domain under CC0 1.0 (https://github.com/lieff/minimp3); its tables are carried over verbatim. Layers I and II are not decoded.

Methods

Method Summary
Result Decode(byte[] mp3) Decodes every Layer III frame of an MP3 stream (ID3 tags and other data between frames are skipped).