<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jan 3, 2007, at 3:28 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">the FLAC parts look OK but I don't know how the audio converter</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">works.<SPAN class="Apple-converted-space">  </SPAN>I think that's where the problem is.<SPAN class="Apple-converted-space">  </SPAN>it is probably</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">converting float to 32-bit int full scale.</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>well, here's what I found out about the 32-bit integer conversion.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>If the original 16-bit sample is 0x52F3, it goes through floating point, then comes to the 32-bit integer as 0x52F30000</DIV><DIV>As far as I know that's the proper conversion, yes? Simple adding some LSB to make it 32-bit.</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">but if [audioFile range] is 16 (i.e. 16 bits per sample), then</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">after conversion, the integer PCM samples in outputBuffers</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">should all be in the range [-32768,32767], that's the first</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">thing I'd check.</FONT></P> </BLOCKQUOTE><BR></DIV><DIV>OH so wait...</DIV><DIV>What you're saying then is that the buffers always have to be filled with 32-bit-SIZED-FIELDS, inside of which</DIV><DIV>exists a low-aligned integer sample value?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So the VALUES aren't 32-bit integer, but the SPACE FOR THE SAMPLE VALUE is 32-bit.</DIV><DIV>Wow, that's very trippy. Honestly, I *never* would have guessed that from the documentation.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>That would explain the silence, too.</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>