Implement IComponent::getBusCount()

This commit is contained in:
Robbert van der Helm
2020-12-13 16:18:13 +01:00
parent 116b618ac5
commit 34b2fa8905
6 changed files with 40 additions and 3 deletions
+4 -3
View File
@@ -83,9 +83,10 @@ YaComponentPluginImpl::setIoMode(Steinberg::Vst::IoMode mode) {
int32 PLUGIN_API
YaComponentPluginImpl::getBusCount(Steinberg::Vst::MediaType type,
Steinberg::Vst::BusDirection dir) {
// TODO: Implement
bridge.logger.log("TODO: IComponent::getBusCount()");
return Steinberg::kNotImplemented;
return bridge
.send_message(YaComponent::GetBusCount{
.instance_id = arguments.instance_id, .type = type, .dir = dir})
.native();
}
tresult PLUGIN_API