Implement IComponentHandler::beginEdit()

This commit is contained in:
Robbert van der Helm
2020-12-19 15:36:50 +01:00
parent eacd5f27f5
commit 3b06bca95e
8 changed files with 56 additions and 9 deletions
+3 -3
View File
@@ -122,9 +122,6 @@ class Vst3PluginProxyImpl : public Vst3PluginProxy {
tresult PLUGIN_API initialize(FUnknown* context) override;
tresult PLUGIN_API terminate() override;
private:
Vst3PluginBridge& bridge;
/**
* An `IHostApplication` instance if we get one through
* `IPluginBase::initialize()`. This should be the same for all plugin
@@ -141,4 +138,7 @@ class Vst3PluginProxyImpl : public Vst3PluginProxy {
* to this object.
*/
Steinberg::IPtr<Steinberg::Vst::IComponentHandler> component_handler;
private:
Vst3PluginBridge& bridge;
};
+11 -2
View File
@@ -79,8 +79,17 @@ Vst3PluginBridge::Vst3PluginBridge()
host_callback_handler = std::jthread([&]() {
sockets.vst_host_callback.receive_messages(
std::pair<Vst3Logger&, bool>(logger, false),
overload{[&](const WantsConfiguration&)
-> WantsConfiguration::Response { return config; }});
overload{
[&](const WantsConfiguration&) -> WantsConfiguration::Response {
return config;
},
[&](const YaComponentHandler::BeginEdit& request)
-> YaComponentHandler::BeginEdit::Response {
return plugin_proxies.at(request.owner_instance_id)
.get()
.component_handler->beginEdit(request.id);
},
});
});
}