Displaying 3 results from an estimated 3 matches for "sharpflac".
2010 Jun 23
3
FLAC StreamInfo Parsing
...require 16bits
(simply swap first and second), some block (e.g.MinFrameSize) require
3 byte-array to be reverted.
Finally totalSamples is stored in 5 bytes ( only last 4 bits from
first one byte are used). It was a real issue to make it little-endian
(here is how I did it:
http://code.google.com/p/sharpflac/source/browse/trunk/SharpFlac/Blocks/StreamInfo.cs).
So to make stream little endian, I can't simple get each 4 bytes of
the stream one by one and revert them...
Anyways I've managed to decode StreamInfo, VorbisComments,SeekPoints
and Application blocks without bitStream implementation. B...
2010 Jun 22
2
FLAC StreamInfo Parsing
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.
Best Regards,
2010 Jun 23
0
FLAC StreamInfo Parsing
...irst and second), some block (e.g.MinFrameSize) require
> 3 byte-array to be reverted.
>
> Finally totalSamples is stored in 5 bytes ( only last 4 bits from
> first one byte are used). It was a real issue to make it little-endian
> (here is how I did it:
> http://code.google.com/p/sharpflac/source/browse/trunk/SharpFlac/
> Blocks/StreamInfo.cs).
>
> So to make stream little endian, I can't simple get each 4 bytes of
> the stream one by one and revert them...
>
> Anyways I've managed to decode StreamInfo, VorbisComments,SeekPoints
> and Application blocks...