<div dir="ltr"><div>Thanks Perry.  My next step is trying to get the &quot;Duplex&quot; (pass thru) working.  For comparison, the pure generators sound fine. I agree that building up a step at time is probably the only way to go.  And it sure gets one&#39;s feet wet with the code!<br><br></div>Gary W.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 28, 2016 at 9:31 AM, Perry Cook <span dir="ltr">&lt;<a href="mailto:prc@cs.princeton.edu" target="_blank">prc@cs.princeton.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Gary,<br>
<br>
I’m feeling that this is likely not at the root of your audio crunchiness.<br>
And I’m pretty certain that hard-wiring INT into format would not work.<br>
STK assumes floats in the rough range +/- 1.0 throughout, and only<br>
the last layer of the audio interface worries about getting it out to the<br>
sound card.  I didn’t check all the RTAudio code but I think that format<br>
type might be more wide-reaching than just the last audio hardware<br>
layer.<br>
<br>
Spits and Fizzles on EFX sounds more like buffer/IO problems to me,<br>
unless it’s purely signal (level) dependent, and in that case it sounds<br>
more like clipping.  Starting with EFX, which has I/O and signal<br>
processing, has too many potential areas for problems to happen<br>
to be sure where things might be going wrong.  Maybe try a simpler<br>
demo yet (in the examples folder), like the single sine oscillator, or<br>
playsimp on a really simple (sine wave ideally) .wav file.  Play with<br>
the gain a bit (from within the code) and see if clipping or other<br>
interruption occurs.  If you can get it to make a pure sine wave in<br>
real time that sounds like a pure sine wave (or play any sound file<br>
without distortion/clipping), then the FORMAT/32/64 is likely not the<br>
problem.<br>
<br>
Others please chime in if you have experience in this area.<br>
<br>
PRC<br>
<br>
&gt; On Aug 27, 2016, at 5:51 PM, Gary Worsham &lt;<a href="mailto:gary.worsham@gmail.com">gary.worsham@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I understand I&#39;m still messing around at the RtAudio stage, but I promise to ask some stk questions just as soon as I get this other stuff out of the way.<br>
&gt;<br>
&gt; I accomplished 2 different things.<br>
&gt;<br>
&gt; #1 I figured out how to determine the index of the USB interface and use this instead of &quot;default&quot; when picking the audio interface to use.<br>
&gt;<br>
&gt; #2 I figured out how to get the USB interface down to the default position.  At least, let&#39;s say I changed some things and it&#39;s there but I couldn&#39;t actually explain it.  So now this interface is used by default with the stk example programs.  Yay!<br>
&gt;<br>
&gt; Next issue is that for example, I am running &quot;effects&quot; via StkEffects.  The sound is very crunchy - not overdriven, but spits and fizzles with any signal at all.  I noticed in the effects.cpp:<br>
&gt;<br>
&gt; effects.cpp:  RtAudioFormat format = ( sizeof(StkFloat) == 8 ) ? RTAUDIO_FLOAT64 : RTAUDIO_FLOAT32;<br>
&gt;<br>
&gt; So we are choosing float 64 or float 32 format based on a runtime decision... however this particular interface only supports 32 bit int.  Seems like this code assumes support for 32 or 64 bit float.<br>
&gt;<br>
&gt; Should I just hard-wire RTAUDIO_SINT32 in here to get started, or do I have to change the code itself to accommodate this?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Gary W.<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Stk mailing list<br>
&gt; <a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
&gt; <a href="https://cm-mail.stanford.edu/mailman/listinfo/stk" rel="noreferrer" target="_blank">https://cm-mail.stanford.edu/<wbr>mailman/listinfo/stk</a><br>
<br>
</blockquote></div><br></div>