mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Add logging for the voice info extension
This commit is contained in:
@@ -356,6 +356,15 @@ bool ClapLogger::log_request(bool is_host_plugin,
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ClapLogger::log_request(
|
||||||
|
bool is_host_plugin,
|
||||||
|
const clap::ext::voice_info::plugin::Get& request) {
|
||||||
|
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||||
|
message << request.instance_id
|
||||||
|
<< ": clap_plugin_voice_info::get(*info)";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
bool ClapLogger::log_request(bool is_host_plugin,
|
bool ClapLogger::log_request(bool is_host_plugin,
|
||||||
const clap::plugin::StartProcessing& request) {
|
const clap::plugin::StartProcessing& request) {
|
||||||
return log_request_base(is_host_plugin, [&](auto& message) {
|
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||||
@@ -602,6 +611,15 @@ bool ClapLogger::log_request(bool is_host_plugin,
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ClapLogger::log_request(
|
||||||
|
bool is_host_plugin,
|
||||||
|
const clap::ext::voice_info::host::Changed& request) {
|
||||||
|
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||||
|
message << request.owner_instance_id
|
||||||
|
<< ": clap_host_voice_info::changed()";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
bool ClapLogger::log_request(bool is_host_plugin,
|
bool ClapLogger::log_request(bool is_host_plugin,
|
||||||
const clap::ext::log::host::Log& request) {
|
const clap::ext::log::host::Log& request) {
|
||||||
return log_request_base(is_host_plugin, [&](auto& message) {
|
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||||
@@ -868,6 +886,24 @@ void ClapLogger::log_response(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ClapLogger::log_response(
|
||||||
|
bool is_host_plugin,
|
||||||
|
const clap::ext::voice_info::plugin::GetResponse& response) {
|
||||||
|
log_response_base(is_host_plugin, [&](auto& message) {
|
||||||
|
if (response.result) {
|
||||||
|
message << "true, <clap_voice_info_t* with voice_count = "
|
||||||
|
<< response.result->voice_count
|
||||||
|
<< ", voice_capacity = " << response.result->voice_capacity
|
||||||
|
<< ", flags = "
|
||||||
|
<< std::bitset<sizeof(response.result->flags) * 8>(
|
||||||
|
response.result->flags)
|
||||||
|
<< ">";
|
||||||
|
} else {
|
||||||
|
message << "false";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
void ClapLogger::log_response(bool is_host_plugin,
|
void ClapLogger::log_response(bool is_host_plugin,
|
||||||
const clap::plugin::ProcessResponse& response) {
|
const clap::plugin::ProcessResponse& response) {
|
||||||
log_response_base(is_host_plugin, [&](auto& message) {
|
log_response_base(is_host_plugin, [&](auto& message) {
|
||||||
|
|||||||
@@ -132,6 +132,8 @@ class ClapLogger {
|
|||||||
const clap::ext::state::plugin::Save&);
|
const clap::ext::state::plugin::Save&);
|
||||||
bool log_request(bool is_host_plugin,
|
bool log_request(bool is_host_plugin,
|
||||||
const clap::ext::state::plugin::Load&);
|
const clap::ext::state::plugin::Load&);
|
||||||
|
bool log_request(bool is_host_plugin,
|
||||||
|
const clap::ext::voice_info::plugin::Get&);
|
||||||
|
|
||||||
// Audio thread control messages
|
// Audio thread control messages
|
||||||
bool log_request(bool is_host_plugin, const clap::plugin::StartProcessing&);
|
bool log_request(bool is_host_plugin, const clap::plugin::StartProcessing&);
|
||||||
@@ -173,6 +175,8 @@ class ClapLogger {
|
|||||||
const clap::ext::latency::host::Changed&);
|
const clap::ext::latency::host::Changed&);
|
||||||
bool log_request(bool is_host_plugin,
|
bool log_request(bool is_host_plugin,
|
||||||
const clap::ext::state::host::MarkDirty&);
|
const clap::ext::state::host::MarkDirty&);
|
||||||
|
bool log_request(bool is_host_plugin,
|
||||||
|
const clap::ext::voice_info::host::Changed&);
|
||||||
|
|
||||||
// Audio thread callbacks
|
// Audio thread callbacks
|
||||||
bool log_request(bool is_host_plugin, const clap::ext::log::host::Log&);
|
bool log_request(bool is_host_plugin, const clap::ext::log::host::Log&);
|
||||||
@@ -212,6 +216,8 @@ class ClapLogger {
|
|||||||
const clap::ext::params::plugin::FlushResponse&);
|
const clap::ext::params::plugin::FlushResponse&);
|
||||||
void log_response(bool is_host_plugin,
|
void log_response(bool is_host_plugin,
|
||||||
const clap::ext::state::plugin::SaveResponse&);
|
const clap::ext::state::plugin::SaveResponse&);
|
||||||
|
void log_response(bool is_host_plugin,
|
||||||
|
const clap::ext::voice_info::plugin::GetResponse&);
|
||||||
|
|
||||||
// Audio thread control message responses
|
// Audio thread control message responses
|
||||||
void log_response(bool is_host_plugin,
|
void log_response(bool is_host_plugin,
|
||||||
|
|||||||
Reference in New Issue
Block a user