mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 04:50:43 +02:00
Remove are_objects_directly_connected check
It's not necessary, since all of these objects are simple data objects that will be passed as arguments to other functions. When we have to pass through one of those functions we can just serialize the objects at that point.
This commit is contained in:
@@ -170,22 +170,9 @@ void Vst3Bridge::run() {
|
||||
},
|
||||
[&](const YaConnectionPoint::Connect& request)
|
||||
-> YaConnectionPoint::Connect::Response {
|
||||
// We can directly connect the underlying objects. We'll mark
|
||||
// that we're using a direct connection on our host context
|
||||
// proxy so that when the plugin wants to create an `IMessage`
|
||||
// object, we can keep everything local and we Don't have to go
|
||||
// through the host.
|
||||
// We can directly connect the underlying objects
|
||||
// TODO: Add support for connecting objects through a proxy
|
||||
// object provided by the host
|
||||
if (object_instances[request.instance_id].host_context_proxy) {
|
||||
object_instances[request.instance_id]
|
||||
.host_context_proxy->are_objects_directly_connected =
|
||||
true;
|
||||
object_instances[request.other_instance_id]
|
||||
.host_context_proxy->are_objects_directly_connected =
|
||||
true;
|
||||
}
|
||||
|
||||
return object_instances[request.instance_id]
|
||||
.connection_point->connect(
|
||||
object_instances[request.other_instance_id]
|
||||
|
||||
Reference in New Issue
Block a user