From 75006a537b8f670e6f3d9275823e4434316083b4 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 5 May 2021 19:25:50 +0200 Subject: [PATCH] Split up VST3 logging for UniversalTResult I was wondering why I couldn't find the overload for `UniversalTResult`, and as it turns out we would always use this variant (which unsurprisingly was the very first overload added). We should of course have separate overloads for this. --- src/common/logging/vst3.cpp | 6 ++++++ src/common/logging/vst3.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/common/logging/vst3.cpp b/src/common/logging/vst3.cpp index c797de72..1e852996 100644 --- a/src/common/logging/vst3.cpp +++ b/src/common/logging/vst3.cpp @@ -1399,6 +1399,12 @@ void Vst3Logger::log_response(bool is_host_vst, const Ack&) { log_response_base(is_host_vst, [&](auto& message) { message << "ACK"; }); } +void Vst3Logger::log_response(bool is_host_vst, + const UniversalTResult& result) { + log_response_base(is_host_vst, + [&](auto& message) { message << result.string(); }); +} + void Vst3Logger::log_response( bool is_host_vst, const Vst3PluginFactoryProxy::ConstructArgs& args) { diff --git a/src/common/logging/vst3.h b/src/common/logging/vst3.h index a1b79cc3..cf351ba8 100644 --- a/src/common/logging/vst3.h +++ b/src/common/logging/vst3.h @@ -242,6 +242,7 @@ class Vst3Logger { const YaUnitHandler2::NotifyUnitByBusChange&); void log_response(bool is_host_vst, const Ack&); + void log_response(bool is_host_vst, const UniversalTResult&); void log_response(bool is_host_vst, const Vst3PluginFactoryProxy::ConstructArgs&); void log_response(