Implement IUnitInfo::getSelectedUnit

This commit is contained in:
Robbert van der Helm
2020-12-27 16:48:47 +01:00
parent fbef37b924
commit 70c5792593
6 changed files with 33 additions and 4 deletions
+5
View File
@@ -639,6 +639,11 @@ void Vst3Bridge::run() {
return YaUnitInfo::GetProgramPitchNameResponse{
.result = result, .name = tchar_pointer_to_u16string(name)};
},
[&](const YaUnitInfo::GetSelectedUnit& request)
-> YaUnitInfo::GetSelectedUnit::Response {
return object_instances[request.instance_id]
.unit_info->getSelectedUnit();
},
});
}