Implement IComponent::GetBusInfo()

This commit is contained in:
Robbert van der Helm
2020-12-13 16:56:09 +01:00
parent 34b2fa8905
commit 9df812952e
6 changed files with 93 additions and 2 deletions
+9 -2
View File
@@ -94,8 +94,15 @@ YaComponentPluginImpl::getBusInfo(Steinberg::Vst::MediaType type,
Steinberg::Vst::BusDirection dir,
int32 index,
Steinberg::Vst::BusInfo& bus /*out*/) {
// TODO: Implement
return Steinberg::kNotImplemented;
const GetBusInfoResponse response = bridge.send_message(
YaComponent::GetBusInfo{.instance_id = arguments.instance_id,
.type = type,
.dir = dir,
.index = index,
.bus = bus});
bus = response.updated_bus;
return response.result.native();
}
tresult PLUGIN_API YaComponentPluginImpl::getRoutingInfo(