<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jan 2, 2007, at 1:54 PM, Josh Coalson wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">this is reported a lot.<SPAN class="Apple-converted-space">  </SPAN>usually it is a misunderstanding in how</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">to send samples to FLAC__stream_encoder_process() or</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">FLAC__stream_encoder_process_interleaved().<SPAN class="Apple-converted-space">  </SPAN>if you could send</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">your code where you are doing that, it would help.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">note that samples going in to the process calls must be converted</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">to signed 32-bit integers (this is lossless) regardless of the</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">initial format.<SPAN class="Apple-converted-space">  </SPAN>see also:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><A href="http://flac.sourceforge.net/api/group__flac__stream__encoder.html#ga63">http://flac.sourceforge.net/api/group__flac__stream__encoder.html#ga63</A></FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Well THAT's interesting!</DIV><DIV>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.</DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">from your description it sounds like you might be sending packed</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">16-bit samples somehow which could cause every other sample to get</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">encoded.</FONT></P> </BLOCKQUOTE><BR></DIV><DIV>This would make sense. I will try the 32-bit technique and see if it works.</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Ev</DIV><DIV>Technical Knowledge Officer</DIV><DIV>Head Programmer/Designer</DIV><DIV>Audiofile Engineering</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="http://www.audiofile-engineering.com">http://www.audiofile-engineering.com</A>/</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>