Implement IComponent::setActive()

This commit is contained in:
Robbert van der Helm
2020-12-13 22:17:06 +01:00
parent 43296675f6
commit 7341fab0ea
6 changed files with 40 additions and 4 deletions
+4 -3
View File
@@ -134,9 +134,10 @@ YaComponentPluginImpl::activateBus(Steinberg::Vst::MediaType type,
}
tresult PLUGIN_API YaComponentPluginImpl::setActive(TBool state) {
// TODO: Implement
bridge.logger.log("TODO: IComponent::setActive()");
return Steinberg::kNotImplemented;
return bridge
.send_message(YaComponent::SetActive{
.instance_id = arguments.instance_id, .state = state})
.native();
}
tresult PLUGIN_API YaComponentPluginImpl::setState(Steinberg::IBStream* state) {