Implement IUnitHandler::notifyProgramListChange

With this IUnitHandler has been fully implemented.
This commit is contained in:
Robbert van der Helm
2020-12-26 14:30:28 +01:00
parent bf40e10780
commit 47177ed889
6 changed files with 48 additions and 4 deletions
@@ -76,7 +76,8 @@ tresult PLUGIN_API Vst3ComponentHandlerProxyImpl::notifyUnitSelection(
tresult PLUGIN_API Vst3ComponentHandlerProxyImpl::notifyProgramListChange(
Steinberg::Vst::ProgramListID listId,
int32 programIndex) {
// TODO: Implement
std::cerr << "TODO: IUnitHandler::notifyProgramListChange" << std::endl;
return Steinberg::kNotImplemented;
return bridge.send_message(YaUnitHandler::NotifyProgramListChange{
.owner_instance_id = owner_instance_id(),
.list_id = listId,
.program_index = programIndex});
}