Partially implement IConnectionPoint::connect()

This now works for direct connections, which is probably how most hosts
will use this.
This commit is contained in:
Robbert van der Helm
2020-12-18 14:09:20 +01:00
parent 41a9ca5a36
commit cfa4849467
8 changed files with 50 additions and 8 deletions
+11
View File
@@ -32,6 +32,7 @@ InstanceInterfaces::InstanceInterfaces(
: object(object),
audio_processor(object),
component(object),
connection_point(object),
edit_controller(object),
plugin_base(object) {}
@@ -250,6 +251,16 @@ void Vst3Bridge::run() {
return object_instances[request.instance_id]
.component->setActive(request.state);
},
[&](const YaConnectionPoint::Connect& request)
-> YaConnectionPoint::Connect::Response {
// We can directly connect the underlying objects
// TODO: Add support for connecting objects through a proxy
// object provided by the host
return object_instances[request.instance_id]
.connection_point->connect(
object_instances[request.other_instance_id]
.connection_point);
},
[&](YaEditController2::SetComponentState& request)
-> YaEditController2::SetComponentState::Response {
return object_instances[request.instance_id]