Implement IComponent::getRoutingInfo()

This commit is contained in:
Robbert van der Helm
2020-12-13 21:51:56 +01:00
parent 583645bb46
commit 5b6a8ebfac
6 changed files with 98 additions and 3 deletions
+8 -3
View File
@@ -108,9 +108,14 @@ YaComponentPluginImpl::getBusInfo(Steinberg::Vst::MediaType type,
tresult PLUGIN_API YaComponentPluginImpl::getRoutingInfo(
Steinberg::Vst::RoutingInfo& inInfo,
Steinberg::Vst::RoutingInfo& outInfo /*out*/) {
// TODO: Implement
bridge.logger.log("TODO: IComponent::getRoutingInfo()");
return Steinberg::kNotImplemented;
const GetRoutingInfoResponse response = bridge.send_message(
YaComponent::GetRoutingInfo{.instance_id = arguments.instance_id,
.in_info = inInfo,
.out_info = outInfo});
inInfo = response.updated_in_info;
outInfo = response.updated_out_info;
return response.result.native();
}
tresult PLUGIN_API