<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sorry. I assumed you were using the existing Obj-C PdAudioUnit and PdAudioController classes included with libpd which were written mainly for iOS. We should get around to tweaking it so it works on OSX. Did you try it?<div><br></div><div>In skimming your code, it looks like you're doing everything the PAudioUnit does, so I don't see any obvious problems.<br><div><br><div><div>On Jul 6, 2013, at 8:52 AM, Joe White &lt;<a href="mailto:white.joe4@gmail.com">white.joe4@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Sorry that previous code had some test stuff in it, here's a slightly cleaner version (ARC'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.&nbsp;<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't finished and the CoreAudio backend isn'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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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.&nbsp;</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'm able to run a patch and receive print statements but I'm not getting any audio output and DSP doesn'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&nbsp;<div>


<br></div><p><span>&nbsp;&nbsp;[</span><span>PdBase</span><span>&nbsp;</span>processFloatWithInputBuffer<span>:leftBuffer<span>&nbsp;</span></span>outputBuffer<span>:leftBuffer<span>&nbsp;</span></span>ticks<span>:ticks];</span></p><p><span>...the buffer is still empty. Anyone have any ideas?</span></p><p><span>I'm calling [PdBase computeAudio:] just before I start the AudioUnit. Here'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>
</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--------</div><div>Dan Wilcox</div><div>@danomatika</div><div><a href="http://danomatika.com">danomatika.com</a></div><div><a href="http://robotcowboy.com">robotcowboy.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>