mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-15 07:53:55 +02:00
Don't include angular brackets for concrete types
In the VST2 log output. I just use this syntax as a more descriptive handwavy substitute for the actual data.
This commit is contained in:
@@ -410,7 +410,7 @@ void Vst2Logger::log_event(
|
|||||||
|
|
||||||
std::visit(
|
std::visit(
|
||||||
overload{
|
overload{
|
||||||
[&](const std::nullptr_t&) { message << "<nullptr>"; },
|
[&](const std::nullptr_t&) { message << "nullptr"; },
|
||||||
[&](const std::string& s) {
|
[&](const std::string& s) {
|
||||||
if (s.size() < 32) {
|
if (s.size() < 32) {
|
||||||
message << "\"" << s << "\"";
|
message << "\"" << s << "\"";
|
||||||
@@ -426,7 +426,7 @@ void Vst2Logger::log_event(
|
|||||||
[&](const native_size_t& window_id) {
|
[&](const native_size_t& window_id) {
|
||||||
message << "<window " << window_id << ">";
|
message << "<window " << window_id << ">";
|
||||||
},
|
},
|
||||||
[&](const AEffect&) { message << "<nullptr>"; },
|
[&](const AEffect&) { message << "nullptr"; },
|
||||||
[&](const DynamicVstEvents& events) {
|
[&](const DynamicVstEvents& events) {
|
||||||
message << "<" << events.events.size() << " midi_events";
|
message << "<" << events.events.size() << " midi_events";
|
||||||
if (!events.sysex_data.empty()) {
|
if (!events.sysex_data.empty()) {
|
||||||
@@ -445,15 +445,13 @@ void Vst2Logger::log_event(
|
|||||||
[&](const VstParameterProperties&) {
|
[&](const VstParameterProperties&) {
|
||||||
message << "<writable_buffer>";
|
message << "<writable_buffer>";
|
||||||
},
|
},
|
||||||
[&](const WantsAEffectUpdate&) { message << "<nullptr>"; },
|
[&](const WantsAEffectUpdate&) { message << "nullptr"; },
|
||||||
[&](const WantsAudioShmBufferConfig&) {
|
[&](const WantsAudioShmBufferConfig&) { message << "nullptr"; },
|
||||||
message << "<nullptr>";
|
|
||||||
},
|
|
||||||
[&](const WantsChunkBuffer&) {
|
[&](const WantsChunkBuffer&) {
|
||||||
message << "<writable_buffer>";
|
message << "<writable_buffer>";
|
||||||
},
|
},
|
||||||
[&](const WantsVstRect&) { message << "<VstRect**>"; },
|
[&](const WantsVstRect&) { message << "VstRect**"; },
|
||||||
[&](const WantsVstTimeInfo&) { message << "<nullptr>"; },
|
[&](const WantsVstTimeInfo&) { message << "nullptr"; },
|
||||||
[&](const WantsString&) { message << "<writable_string>"; }},
|
[&](const WantsString&) { message << "<writable_string>"; }},
|
||||||
payload);
|
payload);
|
||||||
|
|
||||||
@@ -465,6 +463,7 @@ void Vst2Logger::log_event(
|
|||||||
|
|
||||||
void Vst2Logger::log_event_response(
|
void Vst2Logger::log_event_response(
|
||||||
bool is_dispatch,
|
bool is_dispatch,
|
||||||
|
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
||||||
int opcode,
|
int opcode,
|
||||||
intptr_t return_value,
|
intptr_t return_value,
|
||||||
const Vst2EventResult::Payload& payload,
|
const Vst2EventResult::Payload& payload,
|
||||||
|
|||||||
Reference in New Issue
Block a user