From b7f65f705f1d6b9d0b7003ad4f9c6d210ba2a9ee Mon Sep 17 00:00:00 2001 From: Brad Howes Date: Thu, 18 May 2023 21:50:35 +0200 Subject: [PATCH] Update to latest AUv3Support release --- Packages/Sources/Kernel/C++/Kernel.hpp | 2 +- iOS/Extension/ViewController.swift | 6 ------ macOS/Extension/ViewController.swift | 7 ------- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/Packages/Sources/Kernel/C++/Kernel.hpp b/Packages/Sources/Kernel/C++/Kernel.hpp index 1abeb54..011e5d0 100644 --- a/Packages/Sources/Kernel/C++/Kernel.hpp +++ b/Packages/Sources/Kernel/C++/Kernel.hpp @@ -92,7 +92,7 @@ class Kernel : public DSPHeaders::EventProcessor { } } - void setParameterFromEvent(const AUParameterEvent& event) noexcept { + void doParameterEvent(const AUParameterEvent& event) noexcept { setRampedParameterValue(event.parameterAddress, event.value, event.rampDurationSampleFrames); } diff --git a/iOS/Extension/ViewController.swift b/iOS/Extension/ViewController.swift index cf332f2..027de59 100644 --- a/iOS/Extension/ViewController.swift +++ b/iOS/Extension/ViewController.swift @@ -161,12 +161,6 @@ extension ViewController: AUParameterEditorDelegate { knob.progressColor = knobColor knob.indicatorColor = knobColor - let trackWidth: CGFloat = parameterAddress == .dry || parameterAddress == .wet ? 8 : 10 - let progressWidth = trackWidth - 2.0 - knob.trackLineWidth = trackWidth - knob.progressLineWidth = progressWidth - knob.indicatorLineWidth = progressWidth - knob.addTarget(self, action: #selector(handleKnobChanged(_:)), for: .valueChanged) let editor = FloatParameterEditor(parameter: parameters[parameterAddress], formatting: parameters[parameterAddress], diff --git a/macOS/Extension/ViewController.swift b/macOS/Extension/ViewController.swift index 422eede..18b868c 100644 --- a/macOS/Extension/ViewController.swift +++ b/macOS/Extension/ViewController.swift @@ -131,13 +131,6 @@ private extension ViewController { knob.progressColor = knobColor knob.indicatorColor = knobColor - let trackWidth: CGFloat = parameterAddress == .dry || parameterAddress == .wet ? 8 : 10 - let progressWidth = trackWidth - 2.0 - - knob.trackLineWidth = trackWidth - knob.progressLineWidth = progressWidth - knob.indicatorLineWidth = progressWidth - knob.target = self knob.action = #selector(handleKnobChanged(_:))