<div dir="auto">I was just thinking about this about an hour ago and was literally just going to try it out right now! <div dir="auto">In, uh, unrelated news, my plans for tonight fell through, so, uh, my schedule is pretty wide open... </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 19, 2019 8:57 PM, "Miller Puckette" <<a href="mailto:msp@ucsd.edu" target="_blank" rel="noreferrer">msp@ucsd.edu</a>> wrote:<br type="attribution"><blockquote class="m_2050971552655062256quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">To Pd list -<br>
<br>
In case anyone else thought they could use vstplugin~ (By Hannes, available<br>
from <a href="https://git.iem.at/pd/vstplugin" rel="noreferrer noreferrer noreferrer" target="_blank">https://git.iem.at/pd/vstplugin</a>) to load Camomile <br>
(<a href="https://github.com/pierreguillot/Camomile" rel="noreferrer noreferrer noreferrer" target="_blank">https://github.com/pierreguillot/Camomile</a>) -<br>
<br>
I don't think it works.  Unless I'm misreading things, once Camomile calls<br>
pd_init(), that call doesn't go to the pd_init that's compiled into<br>
Camomile (via libpd) but instead calls pd_init from the Pd that called<br>
vstplugin~ that called Camomile.  This does nothing, and the next thing libpd<br>
tries to access in the Pd instance fails.<br>
<br>
Here, Pure Data itself (the calling program) is compiled single-thread, and<br>
libpd is compiled multi-thread; this means data structures in the two are<br>
different so they can't call back and forth; anything in libpd had better<br>
refer to its own version of things and not the calling program's.<br>
<br>
Perhaps there's a way vstplugin~ could load the VST in such a way as to have<br>
it only make calls back into vstplugin~ but not into Pd?  It's all a bit<br>
confusing to me.  Anyhow, who would ever want to do this?  (Except actually<br>
for complicated reasons I would :)<br>
<br>
Miller<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" rel="noreferrer noreferrer" 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 noreferrer noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br></div>