mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 04:20:13 +02:00
Use UID conversion for IsPlugInterfaceSupported
I assume that this would also be necessary here, right?
This commit is contained in:
+20
-21
@@ -271,27 +271,26 @@ Vst3PluginBridge::Vst3PluginBridge()
|
||||
});
|
||||
},
|
||||
[&](const YaPlugInterfaceSupport::IsPlugInterfaceSupported&
|
||||
request) -> YaPlugInterfaceSupport::
|
||||
IsPlugInterfaceSupported::Response {
|
||||
// TODO: For correctness' sake we
|
||||
// should automatically reject
|
||||
// queries for interfaces we
|
||||
// don't yet or can't implement,
|
||||
// like the ARA interfaces.
|
||||
if (request.owner_instance_id) {
|
||||
return plugin_proxies
|
||||
.at(*request.owner_instance_id)
|
||||
.get()
|
||||
.plug_interface_support
|
||||
->isPlugInterfaceSupported(
|
||||
request.iid.data());
|
||||
} else {
|
||||
return plugin_factory
|
||||
->plug_interface_support
|
||||
->isPlugInterfaceSupported(
|
||||
request.iid.data());
|
||||
}
|
||||
},
|
||||
request)
|
||||
-> YaPlugInterfaceSupport::IsPlugInterfaceSupported::
|
||||
Response {
|
||||
// TODO: For correctness' sake we should
|
||||
// automatically reject queries for interfaces
|
||||
// we don't yet or can't implement, like the
|
||||
// ARA interfaces.
|
||||
if (request.owner_instance_id) {
|
||||
return plugin_proxies
|
||||
.at(*request.owner_instance_id)
|
||||
.get()
|
||||
.plug_interface_support
|
||||
->isPlugInterfaceSupported(
|
||||
request.iid.get_native_uid().data());
|
||||
} else {
|
||||
return plugin_factory->plug_interface_support
|
||||
->isPlugInterfaceSupported(
|
||||
request.iid.get_native_uid().data());
|
||||
}
|
||||
},
|
||||
[&](const YaProgress::Start& request)
|
||||
-> YaProgress::Start::Response {
|
||||
Steinberg::Vst::IProgress::ID out_id;
|
||||
|
||||
Reference in New Issue
Block a user