mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-16 00:13:55 +02:00
Implement IComponent::setState()
This commit is contained in:
@@ -441,7 +441,7 @@ class HostCallbackDataConverter : DefaultDataConverter {
|
||||
switch (opcode) {
|
||||
case audioMasterGetTime:
|
||||
// Write the returned `VstTimeInfo` struct into a field and
|
||||
// make the function return a poitner to it in the function
|
||||
// make the function return a pointer to it in the function
|
||||
// below. Depending on whether the host supported the
|
||||
// requested time information this operations returns either
|
||||
// a null pointer or a pointer to a `VstTimeInfo` object.
|
||||
|
||||
@@ -153,6 +153,11 @@ void Vst3Bridge::run() {
|
||||
return component_instances[request.instance_id]
|
||||
.component->setActive(request.state);
|
||||
},
|
||||
[&](YaComponent::SetState& request)
|
||||
-> YaComponent::SetState::Response {
|
||||
return component_instances[request.instance_id]
|
||||
.component->setState(&request.state);
|
||||
},
|
||||
[&](const YaPluginFactory::Construct&)
|
||||
-> YaPluginFactory::Construct::Response {
|
||||
return YaPluginFactory::ConstructArgs(
|
||||
|
||||
Reference in New Issue
Block a user