<div dir="ltr">Audio problems such as this are often caused by using a very old windows sound driver, I think it&#39;s called WINMM? I had the same problem, regardless of how generously I buffered, with SDL_Mixer. After tracing out app initialization, I realized that the old crusty windows audio system was being used. After fiddling with t he setup I got DirectX to handle the sound and it is flawless.<div>
<br></div><div style>I don&#39;t know if this is your problem, but it&#39;s worth a shot.</div><div style><br></div><div style>Good luck,</div><div style>Jeremy J.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jun 12, 2013 at 4:42 AM, Matt Day <span dir="ltr">&lt;<a href="mailto:matt.day@york.ac.uk" target="_blank">matt.day@york.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Gary,<br>
<br>
Thanks for the suggestion, but even with 64 buffers of 4096 frames I<br>
still see underflow.<br>
<span class="HOEnZb"><font color="#888888"><br>
Matt<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
Gary Scavone wrote:<br>
&gt; Hi Matt,<br>
&gt;<br>
&gt; You might try modifying the &quot;number of buffers&quot; parameter.<br>
&gt;<br>
&gt; --gary<br>
&gt;<br>
&gt; On 2013-06-10, at 11:15 AM, Matt Day &lt;<a href="mailto:matt.day@york.ac.uk">matt.day@york.ac.uk</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;&gt; I suspect this may be a common issue although my searches did not reveal<br>
&gt;&gt; any discussion of it. Apologies if I have missed something.<br>
&gt;&gt;<br>
&gt;&gt; When building applications under Windows that use full-duplex realtime<br>
&gt;&gt; audio, I always see stream underflow errors which result in<br>
&gt;&gt; discontinuities in the output audio. I have tried increasing the buffer<br>
&gt;&gt; size, and this usually reduces how often it occurs, but it will still<br>
&gt;&gt; invariably occur once. The issue can be seen just by building and<br>
&gt;&gt; running the duplex example under the free version of Visual Studio. I<br>
&gt;&gt; have run this example on 3 different machines and all three exhibit the<br>
&gt;&gt; issue (either running WinXP or WinXP x64 edition).<br>
&gt;&gt;<br>
&gt;&gt; I would be most grateful if anyone can point me to any information on<br>
&gt;&gt; the issue and why it might occur.<br>
&gt;&gt;<br>
&gt;&gt; Many thanks,<br>
&gt;&gt; Matt<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Stk mailing list<br>
&gt;&gt; <a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
&gt;&gt; <a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>
&gt;&gt;<br>
<br>
_______________________________________________<br>
Stk mailing list<br>
<a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
<a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>
</div></div></blockquote></div><br></div>