From f8ac296ec7e6af48a3e56763ed0fce9c6ca1b160 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 21 Jan 2021 20:04:35 +0100 Subject: [PATCH] Print the tempo part of VstTimeInfo At debug level 2. This was needed to debug an issue with Renoise. --- CHANGELOG.md | 3 +++ src/common/logging/vst2.cpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b26e8e5e..aa8eeedd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -75,6 +75,9 @@ TODO: Add an updated screenshot with some fancy VST3-only plugins to the readme priority. This should get rid of any latency spikes during those operations, as this could otherwise steal resources away from the threads that are processing audio. +- When `YABRIDGE_DEBUG_LEVEL` is set to 2 or higher and a plugin asks the host + for the current position in the song, yabridge will now also print the current + tempo to help debugging host bugs. - Changed part of the build process considering [this Wine bug](https://bugs.winehq.org/show_bug.cgi?id=49138). Building with Wine 5.7 and 5.8 required a change, but that change now breaks builds using Wine 6.0 diff --git a/src/common/logging/vst2.cpp b/src/common/logging/vst2.cpp index 4911eac9..de43a961 100644 --- a/src/common/logging/vst2.cpp +++ b/src/common/logging/vst2.cpp @@ -504,7 +504,8 @@ void Vst2Logger::log_event_response( }, [&](const VstTimeInfo& info) { message << ", <" - << "quarter_notes = " << info.ppqPos + << "tempo = " << info.tempo << " bpm" + << ", quarter_notes = " << info.ppqPos << ", samples = " << info.samplePos << ">"; }}, payload);