13
0

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:
Robin Gareus 2024-06-13 17:00:24 +02:00
parent b142fc4410
commit 698ad071b7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 9 additions and 0 deletions

View File

@ -36,6 +36,7 @@ DEF_CLASS_IID (IBStream)
DEF_CLASS_IID (IPluginBase)
DEF_CLASS_IID (IPluginFactory)
DEF_CLASS_IID (IPluginFactory2)
DEF_CLASS_IID (IPluginFactory3)
DEF_CLASS_IID (IPlugFrame)
DEF_CLASS_IID (IPlugView)
DEF_CLASS_IID (ISizeableStream)

View File

@ -1277,6 +1277,14 @@ VST3PI::VST3PI (std::shared_ptr<ARDOUR::VST3PluginModule> m, std::string unique_
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 */
memset (&_context, 0, sizeof (Vst::ProcessContext));