Implement IComponent::activateBus()

This commit is contained in:
Robbert van der Helm
2020-12-13 22:07:19 +01:00
parent 16b949bccf
commit 43296675f6
6 changed files with 51 additions and 3 deletions
+8 -3
View File
@@ -123,9 +123,14 @@ YaComponentPluginImpl::activateBus(Steinberg::Vst::MediaType type,
Steinberg::Vst::BusDirection dir,
int32 index,
TBool state) {
// TODO: Implement
bridge.logger.log("TODO: IComponent::activateBus()");
return Steinberg::kNotImplemented;
return bridge
.send_message(
YaComponent::ActivateBus{.instance_id = arguments.instance_id,
.type = type,
.dir = dir,
.index = index,
.state = state})
.native();
}
tresult PLUGIN_API YaComponentPluginImpl::setActive(TBool state) {