Bundle associated messages with their interfaces

Once we start implementing all of the control messages/callbacks things
could quickly get out of hand otherwise.
This commit is contained in:
Robbert van der Helm
2020-12-08 11:24:05 +01:00
parent 5e85517130
commit ed743e6f22
5 changed files with 23 additions and 20 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ void Vst3Bridge::run() {
sockets.host_vst_control.receive_messages(
std::nullopt,
overload{
[&](const CreateInstaneIComponent& args)
-> CreateInstaneIComponent::Response {
[&](const YaComponent::Create& args)
-> YaComponent::Create::Response {
Steinberg::IPtr<Steinberg::Vst::IComponent> component =
module->getFactory()
.createInstance<Steinberg::Vst::IComponent>(args.cid);