Implement IComponent::setState()

This commit is contained in:
Robbert van der Helm
2020-12-14 12:09:47 +01:00
parent c463543ac9
commit 816d1c1501
10 changed files with 56 additions and 6 deletions
+1 -1
View File
@@ -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.
+5
View File
@@ -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(