mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Store whether two objects are connected directly
In the host context. So when the plugin wants to create an `IMessage` object to send a message to the other object, we don't have to go through the host.
This commit is contained in:
@@ -97,6 +97,15 @@ class Vst3HostContextProxy : public YaHostApplication {
|
||||
return arguments.owner_instance_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to shortcut calls to
|
||||
* `IHostApplication::createInstance(IMessage::iid, IMessage::iid, &obj)`
|
||||
* when two objects (a processor and a controller instance, for example) are
|
||||
* directly connected. This way we don't have to proxy the message created
|
||||
* by the host, which can save a lot of resoruces.
|
||||
*/
|
||||
std::atomic_bool are_objects_directly_connected = false;
|
||||
|
||||
private:
|
||||
ConstructArgs arguments;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user