mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 13:40:05 +02:00
Implement IUnitInfo::getProgramPitchName
This commit is contained in:
@@ -627,6 +627,18 @@ void Vst3Bridge::run() {
|
||||
.unit_info->hasProgramPitchNames(request.list_id,
|
||||
request.program_index);
|
||||
},
|
||||
[&](const YaUnitInfo::GetProgramPitchName& request)
|
||||
-> YaUnitInfo::GetProgramPitchName::Response {
|
||||
Steinberg::Vst::String128 name{0};
|
||||
const tresult result =
|
||||
object_instances[request.instance_id]
|
||||
.unit_info->getProgramPitchName(
|
||||
request.list_id, request.program_index,
|
||||
request.midi_pitch, name);
|
||||
|
||||
return YaUnitInfo::GetProgramPitchNameResponse{
|
||||
.result = result, .name = tchar_pointer_to_u16string(name)};
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user