From 6d02ceb2777e43b04dea775abaf917ac44849250 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 11 Apr 2022 12:38:55 +0200 Subject: [PATCH] Filter out effProcessEvents on verbosity level 1 --- CHANGELOG.md | 5 +++++ src/common/logging/vst2.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f85ac0de..88b0ee6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed + +- `effProcessEvents` VST2 calls are now filtered out from the log when + `YABRIDGE_DEBUG_LEVEL` is set to 1. + ### Fixed - Fixed an obscure issue with VST3 plugins crashing in **Ardour** on diff --git a/src/common/logging/vst2.cpp b/src/common/logging/vst2.cpp index 98ccca7a..841e2996 100644 --- a/src/common/logging/vst2.cpp +++ b/src/common/logging/vst2.cpp @@ -557,7 +557,7 @@ bool Vst2Logger::should_filter_event(bool is_dispatch, // Filter out log messages related to these events by default since they are // called tens of times per second if ((is_dispatch && (opcode == effEditIdle || opcode == effGetTailSize || - opcode == effIdle)) || + opcode == effIdle || opcode == effProcessEvents)) || (!is_dispatch && (opcode == audioMasterGetTime || opcode == audioMasterGetCurrentProcessLevel))) { return true;