mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 21:50:11 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user