<div dir="ltr">I found some links for understanding callback scenario in realtime audio.<div><br></div><div><a href="https://ccrma.stanford.edu/software/stk/crealtime.html">https://ccrma.stanford.edu/software/stk/crealtime.html</a></div><div><a href="http://portaudio.com/docs/v19-doxydocs/blocking_read_write.html">http://portaudio.com/docs/v19-doxydocs/blocking_read_write.html</a></div><div><a href="http://www.rossbencina.com/code/real-time-audio-programming-101-time-waits-for-nothing">http://www.rossbencina.com/code/real-time-audio-programming-101-time-waits-for-nothing</a><br><br>cheers,<br>akntk</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 22, 2015 at 2:36 AM, Jonghyun Kim <span dir="ltr"><<a href="mailto:agitato816@gmail.com" target="_blank">agitato816@gmail.com</a>></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 David for your answer.<div><br></div><div>I understand what mean audio buffer and block size. Now I'm on Linux with Jack backend, and the block size controlled by jack. I know how to change the block size with [block~] or [switch~] in sub-patch.</div><div><br></div><div>But I still don't understand the difference between Callback scenario and Block method. I think that I don't know what is Callback in audio settings. I searched about that, but I couldn't see good answer for me.</div><div><br></div><div>Thanks in advance,</div><div>akntk</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 18, 2015 at 11:26 AM, David Medine <span dir="ltr"><<a href="mailto:dmedine@ucsd.edu" target="_blank">dmedine@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Basically these things have to do with performance. <br>
    <br>
    'Use callbacks' has to do with how Pd communicates with your
    soundcard. There are two options, using callbacks, and blocking. In
    the callbacks scenario, your computer processes samples then asks
    the sound card to 'call you back' when it's ready to receive those
    samples (i.e. when it is out of audio to play and needs some more).
    In the meantime, you can process more samples, or check out what's
    going on on CNN.com or whatever.<br>
    <br>
    In the blocking method the computer hands the samples to the
    soundcard by calling a function and if the sound card is not ready,
    it 'blocks' meaning it stops your function in its tracks until it is
    ready to receive the data. Your thread (Pd) will halt until the
    function that sends the audio has finished. <br>
    <br>
    Anybody out there, please correct me if I am spreading
    misinformation here, but this is my understanding of this
    distinction.<br>
    <br>
    Delay(msec) is a delay between logical time (when your computer
    computes the audio) and real time (when the sound comes out the
    speaker). You want to have some head room here. I've seen really
    good setups get down to below 10ms (as low as 4) without any
    glitches, but usually you want much more time ~50ms or so.<div><div><br>
    <div><br>
      On 2/17/2015 5:42 PM, Jonghyun Kim wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div>
      
      <p dir="ltr">Fyi, I use jack on Linux for PD. </p>
      <div class="gmail_quote">On Feb 18, 2015 8:16 AM, "Jonghyun Kim"
        <<a href="mailto:agitato816@gmail.com" target="_blank">agitato816@gmail.com</a>>
        wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">Hi list,
            <div><br>
            </div>
            <div>I would like to know about some features in audio
              settings.</div>
            <div><br>
            </div>
            <div>I don't understand what mean these options.</div>
            <div><br>
            </div>
            <div>*Delay(msec)* and *Use callbacks*</div>
            <div><br>
            </div>
            <div>I googled these options, but still I don't understand.
              Is there some document about it?</div>
            <div><br>
            </div>
            <div>Thanks in advance,</div>
            <div>akntk</div>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><span><pre>_______________________________________________
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </span></blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>