Implement IUnitInfo::getProgramListInfo

This commit is contained in:
Robbert van der Helm
2020-12-26 22:17:21 +01:00
parent 92a7cb755a
commit 60f6b30b84
6 changed files with 85 additions and 4 deletions
+22
View File
@@ -453,6 +453,15 @@ bool Vst3Logger::log_request(bool is_host_vst,
});
}
bool Vst3Logger::log_request(bool is_host_vst,
const YaUnitInfo::GetProgramListInfo& request) {
return log_request_base(is_host_vst, [&](auto& message) {
message << request.instance_id
<< ": IUnitInfo::getProgramListInfo(listIndex = "
<< request.list_index << ", &info)";
});
}
bool Vst3Logger::log_request(
bool is_host_vst,
const YaAudioProcessor::SetBusArrangements& request) {
@@ -861,6 +870,19 @@ void Vst3Logger::log_response(bool is_host_vst,
});
}
void Vst3Logger::log_response(
bool is_host_vst,
const YaUnitInfo::GetProgramListInfoResponse& response) {
log_response_base(is_host_vst, [&](auto& message) {
message << response.result.string();
if (response.result == Steinberg::kResultOk) {
message << ", <ProgramListInfo for \""
<< VST3::StringConvert::convert(response.info.name)
<< "\">";
}
});
}
void Vst3Logger::log_response(
bool is_host_vst,
const YaAudioProcessor::GetBusArrangementResponse& response) {