Also filter out the event with opcode 52

Not sure what this is, but it's called by Bitwig every time a buffer is
being processed.
This commit is contained in:
Robbert van der Helm
2020-04-28 12:04:09 +02:00
parent 8adb944445
commit 641351d525
3 changed files with 10 additions and 9 deletions
+5 -5
View File
@@ -149,12 +149,12 @@ variables:
from the Wine process and some basic information such as the plugin being from the Wine process and some basic information such as the plugin being
loaded and the wineprefix being used. loaded and the wineprefix being used.
- A value of `1` will log information about most events and function calls - A value of `1` will log information about most events and function calls
being sent between the VST host and the plugin. This filters out the being sent between the VST host and the plugin. This filters out some events
`effEditIdle()` and `audioMasterGetTime()` calls since those are sent tens such as `effEditIdle()` and `audioMasterGetTime()` since those are sent tens
of times per second by for every plugin. of times per second by for every plugin.
- A value of `2` will cause all of the events to be logged, including - A value of `2` will cause all of the events to be logged, including the
`effEditIdle()` and `audioMasterGettime()`. This can be very verbose but it events mentioned above. This can be very verbose but it can be crucial for
can be crucial for debugging plugin-specific problems. debugging plugin-specific problems.
More detailed information about these levels can be found in More detailed information about these levels can be found in
`src/common/logging.h`. `src/common/logging.h`.
+2 -2
View File
@@ -255,8 +255,8 @@ bool Logger::should_filter_event(bool is_dispatch, int opcode) {
// Filter out log messages related to these events by default since they are // Filter out log messages related to these events by default since they are
// called tens of times per second // called tens of times per second
// TODO: Figure out what opcode 52 is and filter that out as well // TODO: Figure out what opcode 52 is
if ((is_dispatch && opcode == effEditIdle) || if ((is_dispatch && (opcode == effEditIdle || opcode == 52)) ||
(!is_dispatch && opcode == audioMasterGetTime)) { (!is_dispatch && opcode == audioMasterGetTime)) {
return true; return true;
} }
+3 -2
View File
@@ -46,8 +46,9 @@ class Logger {
/** /**
* Also print information about callbacks and functions being called by * Also print information about callbacks and functions being called by
* the plugin and the host. This excludes the `effEditIdle()` and * the plugin and the host. This excludes the `effEditIdle()` and
* `audioMasterGetTime()` events since those events are typically sent * `audioMasterGetTime()` events and the event with opcode 52 since
* tens of times per second. Every message is prefixed with a timestamp. * those events are typically sent tens of times per second. Every
* message is prefixed with a timestamp.
*/ */
most_events = 1, most_events = 1,
/** /**