[Flac-dev] FLAC StreamInfo Parsing
Brian Willoughby
brianw at sounds.wa.com
Tue Jun 22 14:54:04 PDT 2010
On Jun 22, 2010, at 07:21, Ivailo Karamanolev wrote:
> Hello Ilia,
>
> The FLAC format by nature is not a byte stream, it's a bit stream.
> Therefore, in order to parse it you need too build a bit-reading
> infrastructure. Eg. a class that accepts a byte stream, implements
> buffering, etc, etc, and supports reading a specified number of
> bits, not bytes as you are used to. There is quite a lot of bit
> logic there, but nothing too scary.
Ivailo is correct. You'll note, Ilia, that other compressed formats
such as MPEG and MP3 also have bit streams, so you might find other
open source examples of bit parsing.
Brian Willoughby
Sound Consulting
More information about the Flac-dev
mailing list