mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 04:19:59 +02:00
Implement IComponent::getState()
With this the basic IComponent interface is fully implemented. Next will be `IAudioProcessor` and `IConnectionPoint` as additions to IComponent. We'll use the same `known_iids` mechanism as used in the plugin factory.
This commit is contained in:
@@ -158,6 +158,15 @@ void Vst3Bridge::run() {
|
||||
return component_instances[request.instance_id]
|
||||
.component->setState(&request.state);
|
||||
},
|
||||
[&](YaComponent::GetState& request)
|
||||
-> YaComponent::GetState::Response {
|
||||
VectorStream stream;
|
||||
const tresult result = component_instances[request.instance_id]
|
||||
.component->getState(&stream);
|
||||
|
||||
return YaComponent::GetStateResponse{
|
||||
.result = result, .updated_state = std::move(stream)};
|
||||
},
|
||||
[&](const YaPluginFactory::Construct&)
|
||||
-> YaPluginFactory::Construct::Response {
|
||||
return YaPluginFactory::ConstructArgs(
|
||||
|
||||
Reference in New Issue
Block a user