mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 05:33:07 +02:00
Keep track of active YaComponentPluginImpls
So we can do host callbacks later.
This commit is contained in:
@@ -18,11 +18,14 @@
|
||||
|
||||
YaComponentPluginImpl::YaComponentPluginImpl(Vst3PluginBridge& bridge,
|
||||
YaComponent::ConstructArgs&& args)
|
||||
: YaComponent(std::move(args)), bridge(bridge) {}
|
||||
: YaComponent(std::move(args)), bridge(bridge) {
|
||||
bridge.register_component(arguments.instance_id, *this);
|
||||
}
|
||||
|
||||
YaComponentPluginImpl::~YaComponentPluginImpl() {
|
||||
bridge.send_message(
|
||||
YaComponent::Destruct{.instance_id = arguments.instance_id});
|
||||
bridge.unregister_component(arguments.instance_id);
|
||||
}
|
||||
|
||||
tresult PLUGIN_API
|
||||
|
||||
Reference in New Issue
Block a user