Fully implement IPlugInterfaceSupport

With this we support all VST 3.6.12 interfaces.
This commit is contained in:
Robbert van der Helm
2021-01-16 15:19:10 +01:00
parent 701271c273
commit 73fda0b568
7 changed files with 41 additions and 5 deletions
@@ -96,9 +96,16 @@ Vst3HostContextProxyImpl::createInstance(Steinberg::TUID /*cid*/,
tresult PLUGIN_API
Vst3HostContextProxyImpl::isPlugInterfaceSupported(const Steinberg::TUID _iid) {
// TODO: Implement
std::cerr
<< "TODO: Implement IPlugInterfaceSupport::isPlugInterfaceSupported()"
<< std::endl;
return Steinberg::kNotImplemented;
if (_iid) {
return bridge.send_message(
YaPlugInterfaceSupport::IsPlugInterfaceSupported{
.owner_instance_id = owner_instance_id(),
.iid = std::to_array(
*reinterpret_cast<const Steinberg::TUID*>(&_iid))});
} else {
bridge.logger.log(
"WARNING: Null pointer passed to "
"'IPlugInterfaceSupport::isPlugInterfaceSupported()'");
return Steinberg::kInvalidArgument;
}
}