mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +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 Vst3Logger::log_request(
|
||||||
bool is_host_vst,
|
bool is_host_vst,
|
||||||
const YaMidiMapping::GetMidiControllerAssignment& request) {
|
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(
|
void Vst3Logger::log_response(
|
||||||
bool is_host_vst,
|
bool is_host_vst,
|
||||||
const YaMidiMapping::GetMidiControllerAssignmentResponse& response) {
|
const YaMidiMapping::GetMidiControllerAssignmentResponse& response) {
|
||||||
|
|||||||
@@ -102,6 +102,10 @@ class Vst3Logger {
|
|||||||
const YaEditControllerHostEditing::BeginEditFromHost&);
|
const YaEditControllerHostEditing::BeginEditFromHost&);
|
||||||
bool log_request(bool is_host_vst,
|
bool log_request(bool is_host_vst,
|
||||||
const YaEditControllerHostEditing::EndEditFromHost&);
|
const YaEditControllerHostEditing::EndEditFromHost&);
|
||||||
|
bool log_request(bool is_host_vst,
|
||||||
|
const YaKeyswitchController::GetKeyswitchCount&);
|
||||||
|
bool log_request(bool is_host_vst,
|
||||||
|
const YaKeyswitchController::GetKeyswitchInfo&);
|
||||||
bool log_request(bool is_host_vst,
|
bool log_request(bool is_host_vst,
|
||||||
const YaMidiMapping::GetMidiControllerAssignment&);
|
const YaMidiMapping::GetMidiControllerAssignment&);
|
||||||
bool log_request(bool is_host_vst,
|
bool log_request(bool is_host_vst,
|
||||||
@@ -217,6 +221,8 @@ class Vst3Logger {
|
|||||||
const YaEditController::GetParamValueByStringResponse&);
|
const YaEditController::GetParamValueByStringResponse&);
|
||||||
void log_response(bool is_host_vst,
|
void log_response(bool is_host_vst,
|
||||||
const YaEditController::CreateViewResponse&);
|
const YaEditController::CreateViewResponse&);
|
||||||
|
void log_response(bool is_host_vst,
|
||||||
|
const YaKeyswitchController::GetKeyswitchInfoResponse&);
|
||||||
void log_response(
|
void log_response(
|
||||||
bool is_host_vst,
|
bool is_host_vst,
|
||||||
const YaMidiMapping::GetMidiControllerAssignmentResponse&);
|
const YaMidiMapping::GetMidiControllerAssignmentResponse&);
|
||||||
|
|||||||
Reference in New Issue
Block a user