<br><br><div class="gmail_quote">On Tue, Jun 17, 2008 at 5:13 PM, Perry R Cook <<a href="mailto:prc@cs.princeton.edu">prc@cs.princeton.edu</a>> 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. Try<br>
increasing the buffersize.<br><font color="#888888">
<br>
PRC</font><div></div></blockquote><div> </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> // Figure out how many bytes in an StkFloat and setup the RtAudio stream.<br> RtAudio::StreamParameters parameters;<br> parameters.deviceId = dac.getDefaultOutputDevice();<br> parameters.nChannels = 2;<br> RtAudioFormat format = ( sizeof(StkFloat) == 8 ) ? RTAUDIO_FLOAT64 : RTAUDIO_FLOAT32;<br>
unsigned int bufferFrames = RT_BUFFER_SIZE * 128;<br><br> std::cout << "bufferFrames is " << bufferFrames << std::endl;<br><br> try {<br> dac.openStream( &parameters, NULL, format, (unsigned int)Stk::sampleRate(), &bufferFrames, &tick, (void *)&sine );<br>
}<br><br>Cheers,<br><br>Ross Clement<br>