[Flac-dev] Is FLAC fully cooked for OS X yet?

Evan Olcott ev at audiofile-engineering.com
Tue Jan 2 12:03:38 PST 2007

On Jan 2, 2007, at 1:54 PM, Josh Coalson wrote:

> this is reported a lot.  usually it is a misunderstanding in how
> to send samples to FLAC__stream_encoder_process() or
> FLAC__stream_encoder_process_interleaved().  if you could send
> your code where you are doing that, it would help.
> note that samples going in to the process calls must be converted
> to signed 32-bit integers (this is lossless) regardless of the
> initial format.  see also:
> http://flac.sourceforge.net/api/group__flac__stream__encoder.html#ga63

Well THAT's interesting!
I get the impression from the documentation that you can give it  
whatever bit range you define in the set_* calls. But if it has to be  
only 32-bit integer (signed, I assume?), then that's easy enough.

> from your description it sounds like you might be sending packed
> 16-bit samples somehow which could cause every other sample to get
> encoded.

This would make sense. I will try the 32-bit technique and see if it  

Technical Knowledge Officer
Head Programmer/Designer
Audiofile Engineering


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/flac-dev/attachments/20070102/17ae9fa3/attachment.html

More information about the Flac-dev mailing list