Sorry that previous code had some test stuff in it, here&#39;s a slightly cleaner version (ARC&#39;d)<div><br></div><div><a href="http://pastebin.com/index/1bR2Ftqn">http://pastebin.com/index/1bR2Ftqn</a><br><br><div class="gmail_quote">

On 6 July 2013 13:47, Joe White <span dir="ltr">&lt;<a href="mailto:white.joe4@gmail.com" target="_blank">white.joe4@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">

How do you mean the CoreAudio backend? I would have thought I should just be able to call the process function in my render callback. Did you check out the code I posted? I happy to provide that as an AudioController for libpd on OSX. Messages and print objects work correctly but libpd is not processing any audio. <div>


<br></div><div><a href="http://pastebin.com/1bR2Ftqn" target="_blank">http://pastebin.com/1bR2Ftqn</a></div><div><br></div><div>Cheers,</div><div>Joe<div><div class="h5"><br><br><div class="gmail_quote">On 5 July 2013 23:33, Dan Wilcox <span dir="ltr">&lt;<a href="mailto:danomatika@gmail.com" target="_blank">danomatika@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 style="word-wrap:break-word">As far as I know, the OSX port isn&#39;t finished and the CoreAudio backend isn&#39;t hooked up. Anyone wanna help out there or sponsor us? :D<div>


<br><div><div>On Jul 5, 2013, at 7:56 AM, <a href="mailto:pd-list-request@iem.at" target="_blank">pd-list-request@iem.at</a> wrote:</div><br><blockquote type="cite"><div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">


<span style="font-family:Helvetica;font-size:medium;color:rgb(127,127,127)"><b>From:<span> </span></b></span><span style="font-family:Helvetica;font-size:medium">Joe White &lt;<a href="mailto:white.joe4@gmail.com" target="_blank">white.joe4@gmail.com</a>&gt;<br>


</span></div><div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">


<span style="font-family:Helvetica;font-size:medium;color:rgb(127,127,127)"><b>Subject:<span> </span></b></span><span style="font-family:Helvetica;font-size:medium"><b>[PD] Libpd running in OS X app</b><br></span></div><div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">


<span style="font-family:Helvetica;font-size:medium;color:rgb(127,127,127)"><b>Date:<span> </span></b></span><span style="font-family:Helvetica;font-size:medium">July 5, 2013 7:34:47 AM EDT<br></span></div><div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">


<span style="font-family:Helvetica;font-size:medium;color:rgb(127,127,127)"><b>To:<span> </span></b></span><span style="font-family:Helvetica;font-size:medium">pd-list &lt;<a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a>&gt;<br>


</span></div><div><br style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<br style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<span style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none">Hi guys,</span><div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<br></div><div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


Does anyone have any experience running libpd in an OS X app, using CoreAudio. </div><div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


<br></div><div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">


I&#39;m able to run a patch and receive print statements but I&#39;m not getting any audio output and DSP doesn&#39;t seem to be processing. I created a quick test tone in code to see if it was my audio unit but that works. My main problem it seems is that after calling <div>


<br></div><p><span>  [</span><span>PdBase</span><span> </span>processFloatWithInputBuffer<span>:leftBuffer<span> </span></span>outputBuffer<span>:leftBuffer<span> </span></span>ticks<span>:ticks];</span></p><p><span>...the buffer is still empty. Anyone have any ideas?</span></p>


<p><span>I&#39;m calling [PdBase computeAudio:] just before I start the AudioUnit. Here&#39;s the whole controller class if that helps:<a href="http://pastebin.com/eYf1Facp" target="_blank">http://pastebin.com/eYf1Facp</a></span></p>


<p><span>Any help would be much appreciated!</span></p><p>Many thanks,</p><p>Joe</p></div></div></blockquote></div><br><div>
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">


<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">


<div>--------</div><div>Dan Wilcox</div><div>@danomatika</div><div><a href="http://danomatika.com" target="_blank">danomatika.com</a></div><div><a href="http://robotcowboy.com" target="_blank">robotcowboy.com</a></div><div>


<br></div></div></span><br></div></span><br><br>
</div>
<br></div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><div class="im">-- <br>Follow me on Twitter @diplojocus
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Follow me on Twitter @diplojocus
</div>