<br><br><div class="gmail_quote">On Tue, Jun 17, 2008 at 5:13 PM, Perry R Cook &lt;<a href="mailto:prc@cs.princeton.edu">prc@cs.princeton.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Each version/flavor of Intel/Audio hardware<br>
might require playing with buffer sizes and<br>
possibly using blocking vs. callback. &nbsp;Try<br>
increasing the buffersize.<br><font color="#888888">
<br>
PRC</font><div></div></blockquote><div>&nbsp;</div></div>For callback, I tried increasing the buffer size all the way up to 65536 frames/buffer. I also tried blocking with RtWvOut. Both still gave crackling sound.<br><br>I would prefer not to have to backtrack to the 4.2.1 version. Can anyone recommend what I might try?<br>
<br>Portaudio V19 works fine on my machine with the Intel sound hardware. I could of course write my programs using portaudio for input/output, but this is clearly far from ideal. <br><br>This is the modified code in my crtsine.cpp<br>
<br>&nbsp; // Figure out how many bytes in an StkFloat and setup the RtAudio stream.<br>&nbsp; RtAudio::StreamParameters parameters;<br>&nbsp; parameters.deviceId = dac.getDefaultOutputDevice();<br>&nbsp; parameters.nChannels = 2;<br>&nbsp; RtAudioFormat format = ( sizeof(StkFloat) == 8 ) ? RTAUDIO_FLOAT64 : RTAUDIO_FLOAT32;<br>
&nbsp; unsigned int bufferFrames = RT_BUFFER_SIZE * 128;<br><br>&nbsp; std::cout &lt;&lt; &quot;bufferFrames is &quot; &lt;&lt; bufferFrames &lt;&lt; std::endl;<br><br>&nbsp;try {<br>&nbsp;&nbsp;&nbsp; dac.openStream( &amp;parameters, NULL, format, (unsigned int)Stk::sampleRate(), &amp;bufferFrames, &amp;tick, (void *)&amp;sine );<br>
&nbsp; }<br><br>Cheers,<br><br>Ross Clement<br>