mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 21:50:11 +02:00
Use the univeral tresult in IComponent creation
This commit is contained in:
@@ -64,10 +64,11 @@ void Vst3Bridge::run() {
|
||||
const size_t instance_id = generate_instance_id();
|
||||
component_instances[instance_id] = std::move(component);
|
||||
|
||||
return std::make_optional<YaComponent::CreateArgs>(
|
||||
return YaComponent::CreateArgs(
|
||||
component_instances[instance_id], instance_id);
|
||||
} else {
|
||||
return std::nullopt;
|
||||
// The actual result is lost here
|
||||
return UniversalTResult(Steinberg::kNotImplemented);
|
||||
}
|
||||
},
|
||||
[&](const YaComponent::Destroy& request)
|
||||
|
||||
Reference in New Issue
Block a user