From 9a1d9afb0a1c180111ff1bffb1bb6346022c8009 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 21 Oct 2020 08:31:43 +0200 Subject: [PATCH] auwrapper: set the knob mode to linear --- source/vst/auwrapper/auwrapper.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/vst/auwrapper/auwrapper.mm b/source/vst/auwrapper/auwrapper.mm index 1f5146f..5a17c87 100644 --- a/source/vst/auwrapper/auwrapper.mm +++ b/source/vst/auwrapper/auwrapper.mm @@ -576,6 +576,13 @@ static void paramChangedListenerProc (void* inRefCon, void* inObject, timer = Timer::create (this, 20); } + + IEditController2* editController2 = nullptr; + if (editController->queryInterface (IEditController2::iid, (void**)&editController2) == + kResultTrue) + { + editController2->setKnobMode (kLinearMode); + } } }