From ca7ac7027b65e6f610d13114ba2587a2be45edba Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 1 Oct 2024 01:21:35 +0200 Subject: [PATCH] VST3: add more debug messages for PSL extensions --- libs/ardour/vst3_plugin.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/ardour/vst3_plugin.cc b/libs/ardour/vst3_plugin.cc index 27c5f691a5..56f664d03b 100644 --- a/libs/ardour/vst3_plugin.cc +++ b/libs/ardour/vst3_plugin.cc @@ -3030,7 +3030,7 @@ VST3PI::setContextInfoValue (FIDString id, double value) return kInvalidArgument; // send index out of bounds } } else { - DEBUG_TRACE (DEBUG::VST3Callbacks, "VST3PI::setContextInfoValue: unsupported ID\n"); + DEBUG_TRACE (DEBUG::VST3Callbacks, string_compose ("VST3PI::setContextInfoValue: unsupported ID %1\n", id)); return kInvalidArgument; } return kResultOk; @@ -3071,7 +3071,7 @@ VST3PI::setContextInfoValue (FIDString id, int32 value) s->session ().set_control (ac, value != 0 ? 1 : 0, Controllable::NoGroup); } } else { - DEBUG_TRACE (DEBUG::VST3Callbacks, "VST3PI::setContextInfoValue: unsupported ID\n"); + DEBUG_TRACE (DEBUG::VST3Callbacks, string_compose ("VST3PI::setContextInfoValue: unsupported ID %1\n", id)); return kNotImplemented; } return kResultOk; @@ -3101,6 +3101,7 @@ VST3PI::beginEditContextInfoValue (FIDString id) } std::shared_ptr ac = lookup_ac (_owner, id); if (!ac) { + DEBUG_TRACE (DEBUG::VST3Callbacks, string_compose ("VST3PI::beginEditContextInfoValue %1 -- invalid AC\n", id)); return kInvalidArgument; } DEBUG_TRACE (DEBUG::VST3Callbacks, string_compose ("VST3PI::beginEditContextInfoValue %1\n", id)); @@ -3117,6 +3118,7 @@ VST3PI::endEditContextInfoValue (FIDString id) } std::shared_ptr ac = lookup_ac (_owner, id); if (!ac) { + DEBUG_TRACE (DEBUG::VST3Callbacks, string_compose ("VST3PI::endEditContextInfoValue %1 -- invalid AC\n", id)); return kInvalidArgument; } DEBUG_TRACE (DEBUG::VST3Callbacks, string_compose ("VST3PI::endEditContextInfoValue %1\n", id));