From 609360537c129479dbcab5ccafdf30abe65e22f6 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 10 Jan 2021 23:36:11 +0100 Subject: [PATCH] Add logging for IAutomationState --- src/common/logging/vst3.cpp | 11 +++++++++++ src/common/logging/vst3.h | 2 ++ 2 files changed, 13 insertions(+) diff --git a/src/common/logging/vst3.cpp b/src/common/logging/vst3.cpp index 8d293289..82d2fe06 100644 --- a/src/common/logging/vst3.cpp +++ b/src/common/logging/vst3.cpp @@ -133,6 +133,17 @@ bool Vst3Logger::log_request( }); } +bool Vst3Logger::log_request( + bool is_host_vst, + const YaAutomationState::SetAutomationState& request) { + return log_request_base(is_host_vst, [&](auto& message) { + message << request.instance_id + << ": " + "IAutomationState::setAutomationState(state = " + << request.state << ")"; + }); +} + bool Vst3Logger::log_request(bool is_host_vst, const YaConnectionPoint::Connect& request) { return log_request_base(is_host_vst, [&](auto& message) { diff --git a/src/common/logging/vst3.h b/src/common/logging/vst3.h index c7002fd4..2ca6ba5c 100644 --- a/src/common/logging/vst3.h +++ b/src/common/logging/vst3.h @@ -69,6 +69,8 @@ class Vst3Logger { bool log_request( bool is_host_vst, const YaAudioPresentationLatency::SetAudioPresentationLatencySamples&); + bool log_request(bool is_host_vst, + const YaAutomationState::SetAutomationState&); bool log_request(bool is_host_vst, const YaConnectionPoint::Connect&); bool log_request(bool is_host_vst, const YaConnectionPoint::Disconnect&); bool log_request(bool is_host_vst, const YaConnectionPoint::Notify&);