<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 7, 2013 at 8:23 AM, Joshan Mahmud <span dir="ltr">&lt;<a href="mailto:joshan.mahmud@gmail.com" target="_blank">joshan.mahmud@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I believe so, I&#39;m running this code: <a href="https://github.com/libpd/libpd/blob/master/samples/cppTest/src/main.cpp" target="_blank">https://github.com/libpd/libpd/blob/master/samples/cppTest/src/main.cpp</a> and I presume line 56 (<span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:18px">pd</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:18px">.</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:18px">computeAudio</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:18px">(</span><span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:18px;color:rgb(0,134,179)">true</span><span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:18px">);) switches on DSP...</span><div>


<br></div><div>Thanks</div><div>Josh</div></div><div class=""><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 7, 2013 at 12:54 PM, Rafael Vega <span dir="ltr">&lt;<a href="mailto:email.rafa@gmail.com" target="_blank">email.rafa@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br><br>On Thursday, November 7, 2013, Joshan Mahmud  wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<font><span style="background-color:rgba(255,255,255,0)">Hi all</span></font><div>
<font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Apologise for the novice question, but I&#39;m trying to work purely with C++ &amp; libpd (OSX desktop) and have been working with samples/cppTest/cpptest.xcodeproj from <a href="https://github.com/libpd/libpd" target="_blank">https://github.com/libpd/libpd</a>.</span></font></div>




<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">I can build the project fine (libpd &amp; the cppTest app) but when it opens the test patch (or any for that matter) I do not get any sound.  The patch themselves works fine.  Print statements are ok and sending &amp; receiving messages seem ok.  But I even built a patch which just *~ two phasors, and couldn&#39;t hear it when I used the cppTest code to open my patch<span></span>.  I don&#39;t think there is anything wrong with libpd nor my sound card as I compiled &amp; ran the iOSTest project (deployed to a simulator iPhone) and that worked (fuzzy audio, but sound came through).</span></font></div>




<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Anyone have any good ideas?  I know that with the output AudioUnit on OSX has a default volume of 0 (unlike iOS which has default of 1.0 for volume) so would it be something like that?</span></font></div>




<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Thanks!!!</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Josh</span></font></div>



<div><font></font></div></blockquote><div><br></div><div><br></div></div></div><div>Did you send a &quot;dsp on&quot; message to your patch?</div><span><font color="#888888"><br><br>-- <br><div dir="ltr">Rafael Vega<br>
<a href="mailto:email.rafa@gmail.com" target="_blank">email.rafa@gmail.com</a></div>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br><br>Maybe I&#39;m missing something when skimming through your code, but, where 
are you setting up audio I/O? libpd doesn&#39;t do that automatically for 
you. Here&#39;s my implementation 
<a href="https://github.com/rvega/XookyNabox/blob/master/src/main.cpp">https://github.com/rvega/XookyNabox/blob/master/src/main.cpp</a> It uses 
jack as audio I/O and libpd as DSP processing.<br><br><br></div></div>