<div dir="ltr">Without seeing your code, it&#39;s impossible to tell what is wrong. There is always the possibility that there is a buggy component in the audio graph, I guess you&#39;ve tried the app on another OS? How about another machine? If you have narrowed the problem to be OS specific, then I&#39;d suggest trying to use a different driver for the audio stream, although I can&#39;t imagine a better one to use than directX.<div>
<br></div><div>At the risk of sounding patronizing, have you written realtime software before? There are some common errors that beginners make, especially regarding memory management, that cause underflows. Pardon me if I&#39;m way off the mark.<br>
<div><br></div><div style>Regards, and good luck,</div><div style>Jeremy J.</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 14, 2013 at 11:44 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"><div dir="ltr">Thanks, this sounds very plausible. However, I stepped through the initialisation code in STK and everything looks
<br>OK. In fact, I can&#39;t see how STK could be using anything other than the dsound calls, unless you are suggesting that Windows decides to delegate these calls to
winmm?<br><div>
<br>I have also tried building under MinGW and I get the same issue. <br><br></div><div>Thanks,<br></div><div>Matt<br></div><div><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 June 2013 14:21, Jeremy Jurksztowicz <span dir="ltr">&lt;<a href="mailto:jurksztowicz@gmail.com" target="_blank">jurksztowicz@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>I don&#39;t know if this is your problem, but it&#39;s worth a shot.</div><div><br></div><div>Good luck,</div><div>Jeremy J.</div></div><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><font color="#888888"><br>
Matt<br>
</font></span><div><div><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" target="_blank">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" target="_blank">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" target="_blank">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>
</div></div></blockquote></div><br>
</div></div></div></div>
</blockquote></div><br></div>