mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Add logging for IKeyswitchController
This commit is contained in:
@@ -337,6 +337,29 @@ bool Vst3Logger::log_request(
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(
|
||||
bool is_host_vst,
|
||||
const YaKeyswitchController::GetKeyswitchCount& request) {
|
||||
return log_request_base(is_host_vst, [&](auto& message) {
|
||||
message << request.instance_id
|
||||
<< ": IKeyswitchController::getKeyswitchCount(busIndex = "
|
||||
<< request.bus_index << ", channel = " << request.channel
|
||||
<< ")";
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(
|
||||
bool is_host_vst,
|
||||
const YaKeyswitchController::GetKeyswitchInfo& request) {
|
||||
return log_request_base(is_host_vst, [&](auto& message) {
|
||||
message << request.instance_id
|
||||
<< ": IKeyswitchController::getKeyswitchCount(busIndex = "
|
||||
<< request.bus_index << ", channel = " << request.channel
|
||||
<< ", keySwitchIndex = " << request.key_switch_index
|
||||
<< ", &info)";
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(
|
||||
bool is_host_vst,
|
||||
const YaMidiMapping::GetMidiControllerAssignment& request) {
|
||||
@@ -1218,6 +1241,19 @@ void Vst3Logger::log_response(
|
||||
});
|
||||
}
|
||||
|
||||
void Vst3Logger::log_response(
|
||||
bool is_host_vst,
|
||||
const YaKeyswitchController::GetKeyswitchInfoResponse& response) {
|
||||
log_response_base(is_host_vst, [&](auto& message) {
|
||||
message << response.result.string();
|
||||
if (response.result == Steinberg::kResultOk) {
|
||||
message << ", <KeyswitchInfo for \""
|
||||
<< VST3::StringConvert::convert(response.info.title)
|
||||
<< "\">";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void Vst3Logger::log_response(
|
||||
bool is_host_vst,
|
||||
const YaMidiMapping::GetMidiControllerAssignmentResponse& response) {
|
||||
|
||||
Reference in New Issue
Block a user