Implement IUnitInfo::getUnitInfo

This commit is contained in:
Robbert van der Helm
2020-12-26 22:03:26 +01:00
parent f3e706a39a
commit 5e832a2689
7 changed files with 96 additions and 9 deletions
@@ -448,9 +448,13 @@ int32 PLUGIN_API Vst3PluginProxyImpl::getUnitCount() {
tresult PLUGIN_API
Vst3PluginProxyImpl::getUnitInfo(int32 unitIndex,
Steinberg::Vst::UnitInfo& info /*out*/) {
// TODO: Implement
bridge.logger.log("TODO: IUnitInfo::getUnitInfo()");
return Steinberg::kNotImplemented;
const GetUnitInfoResponse response =
bridge.send_message(YaUnitInfo::GetUnitInfo{
.instance_id = instance_id(), .unit_index = unitIndex});
info = response.info;
return response.result;
}
int32 PLUGIN_API Vst3PluginProxyImpl::getProgramListCount() {