VST3: prepare to provide a runloop to IAudioProcessor
Currently _run_loop is NULL (which is valid) until the GUI is opened at least once. Next step is to move the [static] runloop into libpbd.
This commit is contained in:
parent
b142fc4410
commit
698ad071b7
@ -36,6 +36,7 @@ DEF_CLASS_IID (IBStream)
|
|||||||
DEF_CLASS_IID (IPluginBase)
|
DEF_CLASS_IID (IPluginBase)
|
||||||
DEF_CLASS_IID (IPluginFactory)
|
DEF_CLASS_IID (IPluginFactory)
|
||||||
DEF_CLASS_IID (IPluginFactory2)
|
DEF_CLASS_IID (IPluginFactory2)
|
||||||
|
DEF_CLASS_IID (IPluginFactory3)
|
||||||
DEF_CLASS_IID (IPlugFrame)
|
DEF_CLASS_IID (IPlugFrame)
|
||||||
DEF_CLASS_IID (IPlugView)
|
DEF_CLASS_IID (IPlugView)
|
||||||
DEF_CLASS_IID (ISizeableStream)
|
DEF_CLASS_IID (ISizeableStream)
|
||||||
|
@ -1277,6 +1277,14 @@ VST3PI::VST3PI (std::shared_ptr<ARDOUR::VST3PluginModule> m, std::string unique_
|
|||||||
throw failed_constructor ();
|
throw failed_constructor ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SMTG_OS_LINUX
|
||||||
|
IPtr<IPluginFactory3> factory3 = FUnknownPtr<IPluginFactory3> (factory);
|
||||||
|
if (factory3) {
|
||||||
|
Vst::IComponentHandler* ctx = this;
|
||||||
|
factory3->setHostContext ((FUnknown*) ctx);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* prepare process context */
|
/* prepare process context */
|
||||||
memset (&_context, 0, sizeof (Vst::ProcessContext));
|
memset (&_context, 0, sizeof (Vst::ProcessContext));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user