mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-10 07:47:16 -04:00
Fix VST parameter automation performance (#8253)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user