mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Add logging for audio-ports-config
This commit is contained in:
@@ -143,6 +143,35 @@ bool ClapLogger::log_request(
|
||||
});
|
||||
}
|
||||
|
||||
bool ClapLogger::log_request(
|
||||
bool is_host_plugin,
|
||||
const clap::ext::audio_ports_config::plugin::Count& request) {
|
||||
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||
message << request.instance_id
|
||||
<< ": clap_plugin_audio_ports_config::count()";
|
||||
});
|
||||
}
|
||||
|
||||
bool ClapLogger::log_request(
|
||||
bool is_host_plugin,
|
||||
const clap::ext::audio_ports_config::plugin::Get& request) {
|
||||
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||
message << request.instance_id
|
||||
<< ": clap_plugin_audio_ports_config::get(index = "
|
||||
<< request.index << ", *config)";
|
||||
});
|
||||
}
|
||||
|
||||
bool ClapLogger::log_request(
|
||||
bool is_host_plugin,
|
||||
const clap::ext::audio_ports_config::plugin::Select& request) {
|
||||
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||
message << request.instance_id
|
||||
<< ": clap_plugin_audio_ports_config::select(config_id = "
|
||||
<< request.config_id << ")";
|
||||
});
|
||||
}
|
||||
|
||||
bool ClapLogger::log_request(
|
||||
bool is_host_plugin,
|
||||
const clap::ext::gui::plugin::IsApiSupported& request) {
|
||||
@@ -541,6 +570,15 @@ bool ClapLogger::log_request(
|
||||
});
|
||||
}
|
||||
|
||||
bool ClapLogger::log_request(
|
||||
bool is_host_plugin,
|
||||
const clap::ext::audio_ports_config::host::Rescan& request) {
|
||||
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||
message << request.owner_instance_id
|
||||
<< ": clap_host_audio_ports_config::rescan()";
|
||||
});
|
||||
}
|
||||
|
||||
bool ClapLogger::log_request(
|
||||
bool is_host_plugin,
|
||||
const clap::ext::gui::host::ResizeHintsChanged& request) {
|
||||
@@ -782,6 +820,19 @@ void ClapLogger::log_response(
|
||||
});
|
||||
}
|
||||
|
||||
void ClapLogger::log_response(
|
||||
bool is_host_plugin,
|
||||
const clap::ext::audio_ports_config::plugin::GetResponse& response) {
|
||||
log_response_base(is_host_plugin, [&](auto& message) {
|
||||
if (response.result) {
|
||||
message << "true, <clap_audio_ports_config_t* for \""
|
||||
<< response.result->name << "\">";
|
||||
} else {
|
||||
message << "false";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void ClapLogger::log_response(
|
||||
bool is_host_plugin,
|
||||
const clap::ext::gui::plugin::GetSizeResponse& response) {
|
||||
|
||||
@@ -90,6 +90,12 @@ class ClapLogger {
|
||||
const clap::ext::audio_ports::plugin::Count&);
|
||||
bool log_request(bool is_host_plugin,
|
||||
const clap::ext::audio_ports::plugin::Get&);
|
||||
bool log_request(bool is_host_plugin,
|
||||
const clap::ext::audio_ports_config::plugin::Count&);
|
||||
bool log_request(bool is_host_plugin,
|
||||
const clap::ext::audio_ports_config::plugin::Get&);
|
||||
bool log_request(bool is_host_plugin,
|
||||
const clap::ext::audio_ports_config::plugin::Select&);
|
||||
bool log_request(bool is_host_plugin,
|
||||
const clap::ext::gui::plugin::IsApiSupported&);
|
||||
bool log_request(bool is_host_plugin,
|
||||
@@ -159,6 +165,8 @@ class ClapLogger {
|
||||
const clap::ext::audio_ports::host::IsRescanFlagSupported&);
|
||||
bool log_request(bool is_host_plugin,
|
||||
const clap::ext::audio_ports::host::Rescan&);
|
||||
bool log_request(bool is_host_plugin,
|
||||
const clap::ext::audio_ports_config::host::Rescan&);
|
||||
bool log_request(bool is_host_plugin,
|
||||
const clap::ext::gui::host::ResizeHintsChanged&);
|
||||
bool log_request(bool is_host_plugin,
|
||||
@@ -201,6 +209,9 @@ class ClapLogger {
|
||||
const clap::plugin::ActivateResponse&);
|
||||
void log_response(bool is_host_plugin,
|
||||
const clap::ext::audio_ports::plugin::GetResponse&);
|
||||
void log_response(
|
||||
bool is_host_plugin,
|
||||
const clap::ext::audio_ports_config::plugin::GetResponse&);
|
||||
void log_response(bool is_host_plugin,
|
||||
const clap::ext::gui::plugin::GetSizeResponse&);
|
||||
void log_response(bool is_host_plugin,
|
||||
|
||||
Reference in New Issue
Block a user