Implement IUnitInfo::getProgramInfo

This commit is contained in:
Robbert van der Helm
2020-12-26 22:59:21 +01:00
parent 204765ec0c
commit f96e6b5a1e
6 changed files with 95 additions and 4 deletions
+24
View File
@@ -471,6 +471,17 @@ bool Vst3Logger::log_request(bool is_host_vst,
});
}
bool Vst3Logger::log_request(bool is_host_vst,
const YaUnitInfo::GetProgramInfo& request) {
return log_request_base(is_host_vst, [&](auto& message) {
message << request.instance_id
<< ": IUnitInfo::getProgramInfo(listId = " << request.list_id
<< ", programIndex = " << request.program_index
<< ", attributeId = " << request.attribute_id
<< ", &attributeValue)";
});
}
bool Vst3Logger::log_request(
bool is_host_vst,
const YaAudioProcessor::SetBusArrangements& request) {
@@ -904,6 +915,19 @@ void Vst3Logger::log_response(
});
}
void Vst3Logger::log_response(
bool is_host_vst,
const YaUnitInfo::GetProgramInfoResponse& response) {
log_response_base(is_host_vst, [&](auto& message) {
message << response.result.string();
if (response.result == Steinberg::kResultOk) {
message << ", \""
<< VST3::StringConvert::convert(response.attribute_value)
<< "\"";
}
});
}
void Vst3Logger::log_response(
bool is_host_vst,
const YaAudioProcessor::GetBusArrangementResponse& response) {