Fix VST parameter automation performance (#8253)

This commit is contained in:
Dalton Messmer
2026-03-26 23:31:02 -04:00
committed by GitHub
parent 1155590927
commit 098f0ed4b9
41 changed files with 665 additions and 634 deletions

View File

@@ -46,10 +46,11 @@ AmplifierControlDialog::AmplifierControlDialog(AmplifierControls* controls) :
auto makeKnob = [this](const QString& label, const QString& hintText, const QString& unit, FloatModel* model, bool isVolume)
{
Knob* newKnob = new Knob(KnobType::Bright26, label, this);
Knob* newKnob = isVolume
? new VolumeKnob(KnobType::Bright26, label, this)
: new Knob(KnobType::Bright26, label, this);
newKnob->setModel(model);
newKnob->setHintText(hintText, unit);
newKnob->setVolumeKnob(isVolume);
return newKnob;
};