Add human readable name for effGetTailSize opcode

This commit is contained in:
Robbert van der Helm
2021-02-13 17:34:51 +01:00
parent e57c642cfe
commit 0ef15fc911
2 changed files with 12 additions and 4 deletions
+6 -4
View File
@@ -154,7 +154,10 @@ std::optional<std::string> opcode_to_string(bool is_dispatch, int opcode) {
return "effSetSpeakerArrangement";
break;
case effGetSpeakerArrangement:
return "effGetSpeakerArrangement ";
return "effGetSpeakerArrangement";
break;
case effGetTailSize:
return "effGetTailSize";
break;
default:
return std::nullopt;
@@ -521,9 +524,8 @@ bool Vst2Logger::should_filter_event(bool is_dispatch, int opcode) const {
// Filter out log messages related to these events by default since they are
// called tens of times per second
// TODO: Figure out what opcode 52 is
if ((is_dispatch &&
(opcode == effEditIdle || opcode == 52 || opcode == effIdle)) ||
if ((is_dispatch && (opcode == effEditIdle || opcode == effGetTailSize ||
opcode == effIdle)) ||
(!is_dispatch && (opcode == audioMasterGetTime ||
opcode == audioMasterGetCurrentProcessLevel))) {
return true;
+6
View File
@@ -47,6 +47,12 @@
[[maybe_unused]] constexpr int effSetSpeakerArrangement = 42;
[[maybe_unused]] constexpr int effGetSpeakerArrangement = 69;
/**
* Used by hosts to query the length of reverb tails (equivalent to
* `IAudioProcessor::getTailSamples`). Found on the same list as above.
*/
[[maybe_unused]] constexpr int effGetTailSize = 52;
/**
* The struct that's being passed through the data parameter during the
* `effGetInputProperties` and `effGetOutputProperties` opcodes. Reverse