<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Coming back to this thread since I've solved the issue, and even though it's an openFrameworks thing, it might be helpful to others looking here.<br><br></div>I cloned openFrameworks from GitHub (<a href="https://github.com/openframeworks/openFrameworks">https://github.com/openframeworks/openFrameworks</a>) and made the following changes:<br></div>In the libs/openFrameworks/sound directory, I changed lines lines 96 and 224 from ofSoundStream.h, and line 25 from ofBaseSoundStream.h, replacing UNSPECIFIED with JACK (to be honest, I'm not sure if this is really necessary).<br></div>Then, in a test app with ofxPd, in testApp.h I included the following line inside the testApp class:<br>ofSoundStream soundStream;<br><br></div>plus the sample variable rate like this:<br></div>int samplerate;<br><br></div>and in testApp.cpp, inside the setup function, I created an instance of the ofSoundStreamSettings like this:<br>ofSoundStreamSettings settings;<br><br></div><div>I initialized the sample rate:<br>sampleRate = 48000;<br></div><div><br></div>then I setup JACK like this:<br>auto devices = soundStream.getDeviceList(ofSoundDevice::Api::JACK);<br>settings.setOutDevice(devices[0]);<br><br></div>and finally I made the ofSoundStreamSettings like this:<br>settings.setOutListener(this);<br>settings.sampleRate = sampleRate;<br>settings.numOutputChannels = 2;<br>settings.numInputChannels = 0;<br>settings.bufferSize = ofxPd::blockSize()*ticksPerBuffer;<br>soundStream.setup(settings);<br><br></div>Initially I left the settings of Dan:<br>ofSoundStreamSetup(2, numInputs, this, sampleRate, ofxPd::blockSize()*ticksPerBuffer, 3);<br><br></div>but compiling failed and prompted me to use the ofSoundStreamSettings object.<br><br><br></div>An that's it, it worked with JACK!<br><br></div>Thanks for the tips and Dan, thanks a lot for the addon, it's great!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 2, 2016 at 11:30 PM, Alexandros Drymonitis <span dir="ltr"><<a href="mailto:adrcki@gmail.com" target="_blank">adrcki@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 for the tips guys. I'll try it out and if I manage I'll come back here for the record, even though it's an openFrameworks issue.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 1, 2016 at 9:48 PM, ub@xdv <span dir="ltr"><<a href="mailto:ub@xdv.org" target="_blank">ub@xdv.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 01.06.2016 17:55, Alexandros Drymonitis wrote:<br>
> I'm trying to use the ofxPd addon and even though the examples provided<br>
> compile fine on my computer exchanging data between OF and Pd (I did some<br>
> tests with some modified examples too), I can't find a way to use the addon<br>
> with Jack.<br>
<br>
</span>i have no direct experience, but maybe this part of the readme is<br>
interesting for you:<br>
"""<br>
libpd as utilized in ofxPd does not handle any of the audio interfacing<br>
itself, but is called via the ofSoundStream system within<br>
OpenFrameworks. If you have any issues with the sound interface / audio<br>
apis themselves, please log an issue to the OpenFrameworks Github repo.<br>
"""<br>
<a href="https://github.com/danomatika/ofxPd#audio-interfacing--debugging-audio-issues" rel="noreferrer" target="_blank">https://github.com/danomatika/ofxPd#audio-interfacing--debugging-audio-issues</a><br>
<br>
the topic of ofSoundStream with jack really seems to be curiously absent<br>
from the public discussions. there is an old thread, suggesting to use<br>
rtAudio, compiled with --enable-jack instead of ofSoundStream.<br>
might be worth looking into:<br>
<a href="https://forum.openframeworks.cc/t/openframeworks-with-linux-jack/4242" rel="noreferrer" target="_blank">https://forum.openframeworks.cc/t/openframeworks-with-linux-jack/4242</a><br>
<span><br>
> Any ideas? A search I did didn't seem to give any insight (of course<br>
> someone might show up with a link with very specific instruction, but<br>
> haven't found something myself).<br>
> I'm on Debian Jessis XFCE with openFrameworks-0.8.4 and the respective<br>
> ofxPd addon.<br>
<br>
<br>
<br>
><br>
> I also tried to find libpd's mailing list (or is it a forum?), but it seems<br>
> to be down, hence I'm sending the mail here.<br>
<br>
</span>cheers,<br>
ub<br>
<br>
><br>
> Thanks<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 -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</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 -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>