Collin wrote:

> It turns out it was an error on my part; sorry for the trouble. I 
> misunderstood
> the format libflac was expecting my samples in. I found the wording in the
> documentation very confusing.
> 
> My audio file has 2 channels and 16-bit samples, so I have to pull out each
> individual sample, push it into a FLAC__int32, and fix endian-ness before I 
> can
> pass it to libflac.
> 
> The documentation made me think that libflac just wanted me to shove my 2-byte
> sample into a FLAC__int32. I wasn't aware that it wanted me to extend the 
> sign,
> as well.

At some stage it might make sense for us to make the FLAC API a little
more user/programmer friendly. Something to match libsndfile's ease of
use.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
flac-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to