mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Add stubs for IPlugInterfaceSupport
This commit is contained in:
@@ -804,10 +804,12 @@ void Vst3Bridge::run() {
|
||||
// start timers from here.
|
||||
return main_context
|
||||
.run_in_context<tresult>([&]() {
|
||||
// This static cast is required to upcast to `FUnknown*`
|
||||
return object_instances[request.instance_id]
|
||||
.plugin_base->initialize(
|
||||
object_instances[request.instance_id]
|
||||
.host_context_proxy);
|
||||
static_cast<YaHostApplication*>(
|
||||
object_instances[request.instance_id]
|
||||
.host_context_proxy));
|
||||
})
|
||||
.get();
|
||||
},
|
||||
@@ -876,7 +878,10 @@ void Vst3Bridge::run() {
|
||||
module->getFactory().get());
|
||||
assert(factory_3);
|
||||
|
||||
return factory_3->setHostContext(plugin_factory_host_context);
|
||||
// This static cast is required to upcast to `FUnknown*`
|
||||
return factory_3->setHostContext(
|
||||
static_cast<YaHostApplication*>(
|
||||
plugin_factory_host_context));
|
||||
},
|
||||
[&](const YaUnitInfo::GetUnitCount& request)
|
||||
-> YaUnitInfo::GetUnitCount::Response {
|
||||
|
||||
Reference in New Issue
Block a user