mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-13 20:09:59 +02:00
Log cached audioMasterGetTime() calls
Just like we log cached VST3 function calls.
This commit is contained in:
@@ -449,7 +449,8 @@ void Vst2Logger::log_event_response(
|
||||
int opcode,
|
||||
intptr_t return_value,
|
||||
const EventResultPayload& payload,
|
||||
const std::optional<EventResultPayload>& value_payload) {
|
||||
const std::optional<EventResultPayload>& value_payload,
|
||||
bool from_cache) {
|
||||
if (BOOST_UNLIKELY(logger.verbosity >= Logger::Verbosity::most_events)) {
|
||||
if (should_filter_event(is_dispatch, opcode)) {
|
||||
return;
|
||||
@@ -516,6 +517,10 @@ void Vst2Logger::log_event_response(
|
||||
}},
|
||||
payload);
|
||||
|
||||
if (from_cache) {
|
||||
message << " (from cache)";
|
||||
}
|
||||
|
||||
log(message.str());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,8 @@ class Vst2Logger {
|
||||
int opcode,
|
||||
intptr_t return_value,
|
||||
const EventResultPayload& payload,
|
||||
const std::optional<EventResultPayload>& value_payload);
|
||||
const std::optional<EventResultPayload>& value_payload,
|
||||
bool from_cache = false);
|
||||
|
||||
/**
|
||||
* The underlying logger instance we're wrapping.
|
||||
|
||||
Reference in New Issue
Block a user