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 works.

Ev
Technical Knowledge Officer
Head Programmer/Designer
Audiofile Engineering

http://www.audiofile-engineering.com/




_______________________________________________
Flac-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to