<div dir="ltr"><div>Works for me</div><div><br></div><div><br></div><div>Thanks!</div><div><br></div><div>-Theron</div><div>^</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 4, 2023 at 6:15 PM Miller Puckette <<a href="mailto:msp@ucsd.edu">msp@ucsd.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">OK, I've uploaded the fix (I hope correctly) to <a href="http://msp.ucsd.edu/software.html" rel="noreferrer" target="_blank">msp.ucsd.edu/software.html</a>,<br>
as "0.53-2test1".  If that seems to work for everyone I'll rename it "0.53-2".<br>
<br>
Thanks to all the help from several people (and to the portaudio folks!)<br>
<br>
Miller<br>
On Sat, Feb 04, 2023 at 03:09:21PM -0800, Theron Trowbridge wrote:<br>
> It works on my Mac Mini M1 (upgraded to Ventura 13.2 last night) as well.<br>
> The callbacks setting doesn't seem to have any obvious effect, but I didn't<br>
> do anything too crazy with it.<br>
> <br>
> Thanks for all the troubleshooting on this, it's a big help for me right<br>
> now!<br>
> <br>
> <br>
> -Theron<br>
> ^<br>
> <br>
> <br>
> On Sat, Feb 4, 2023 at 3:22 AM Dan Wilcox <<a href="mailto:danomatika@gmail.com" target="_blank">danomatika@gmail.com</a>> wrote:<br>
> <br>
> ><br>
> > On Feb 4, 2023, at 11:46 AM, Denis Połeć <<a href="mailto:denis.polec@gmail.com" target="_blank">denis.polec@gmail.com</a>> wrote:<br>
> ><br>
> > As far as I can tell, everything is going smoothly with the callback<br>
> > settings.<br>
> > However, I still haven't quite understood what it is for.<br>
> ><br>
> ><br>
> > There was some discussion, maybe a year ago, about changing the name of<br>
> > this option and finding ways to make it clear what it does.<br>
> ><br>
> > Copy/paste from Christof's email replay to Romain, to which you were not<br>
> > in CC:<br>
> ><br>
> >  Are there situations when using<br>
> > callbacks  (on CoreAudio) bring any benefit?<br>
> ><br>
> ><br>
> > With "callbacks" enabled, Pd runs directly on the audio thread.<br>
> > Generally, this is not really recommended because Pd itself is not<br>
> > realtime safe. Many operations block for an indeterminate amount of<br>
> > time, e.g. any call to "malloc()", network IO, file system operations,<br>
> > etc. The upside is that you can avoid some extra delay (see below).<br>
> ><br>
> > With Pd's ringbuffer scheduler (= "callbacks" disabled), you can freely<br>
> > adjust the delay according to? your needs. (The "delay" parameter<br>
> > basically sets the size of the ringbuffer.) The price you pay is some<br>
> > extra delay (1x the hardware buffer size). To minimize this extra delay,<br>
> > you would set the /hardware buffer size/ as low as possible (e.g. 64<br>
> > samples) since the audio callback does nothing but transfer a bunch of<br>
> > samples. In this case, the extra latency would be as low as 64 samples,<br>
> > so nothing to worry about too much.<br>
> ><br>
> > (The "callback" option can indeed make a noticable difference when using<br>
> > Jack with larger block sizes. Ideally you would just use the smallest<br>
> > Jack block size possible, but this might not work well for other Jack<br>
> > clients...)<br>
> ><br>
> > As a side note: up until now, Pd's scheduler thread regularly goes to<br>
> > sleep for a fixed duration, so it may wake up a bit too late. If the<br>
> > delay setting is too low, this can lead to drop outs. With my<br>
> > "scheduler_fix" branch, the scheduler thread waits on a semaphore and is<br>
> > notified immediately when audio data is available. In my experience so<br>
> > far, this allows for lower "delay" settings than before.<br>
> ><br>
> > Christof<br>
> ><br>
> ><br>
> > --------<br>
> > Dan Wilcox<br>
> > @danomatika <<a href="https://urldefense.com/v3/__http://twitter.com/danomatika__;!!Mih3wA!FqFnjr76hFtszjAnbA1NsOhAiVYr40Oy4ngNvn9Zt0ponRrBuOKI_4wLu9ailljbiTbrAq-It2ekk46Iu51F4FI$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__http://twitter.com/danomatika__;!!Mih3wA!FqFnjr76hFtszjAnbA1NsOhAiVYr40Oy4ngNvn9Zt0ponRrBuOKI_4wLu9ailljbiTbrAq-It2ekk46Iu51F4FI$</a> ><br>
> > <a href="http://danomatika.com" rel="noreferrer" target="_blank">danomatika.com</a><br>
> > <a href="http://robotcowboy.com" rel="noreferrer" target="_blank">robotcowboy.com</a><br>
> ><br>
> ><br>
> ><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 -><br>
> > <a href="https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!FqFnjr76hFtszjAnbA1NsOhAiVYr40Oy4ngNvn9Zt0ponRrBuOKI_4wLu9ailljbiTbrAq-It2ekk46IWB6f5MQ$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!FqFnjr76hFtszjAnbA1NsOhAiVYr40Oy4ngNvn9Zt0ponRrBuOKI_4wLu9ailljbiTbrAq-It2ekk46IWB6f5MQ$</a> <br>
> ><br>
</blockquote></div>