20template <
typename EditorType,
typename SettingType>
27 const auto isRealtime = pOutputs !=
nullptr;
28 auto result = std::make_unique<EditorType>(
29 S.GetParent(), compressorInstance, isRealtime, services, access,
31 result->PopulateOrExchange(
S);
36std::unique_ptr<EffectEditor>
42 return MakeEditor<CompressorEditor>(
43 S, instance, access, services, pOutputs, std::move(
settings));
46std::unique_ptr<EffectEditor>
52 return MakeEditor<LimiterEditor>(
53 S, instance, access, services, pOutputs, std::move(
settings));
static Settings & settings()
Performs effect computation.
Hold values to send to effect output meters.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
std::unique_ptr< EffectEditor > MakeCompressorEditor(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectUIServices &services, const EffectOutputs *pOutputs, CompressorSettings settings)
std::unique_ptr< EffectEditor > MakeLimiterEditor(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectUIServices &services, const EffectOutputs *pOutputs, LimiterSettings settings)
std::unique_ptr< EffectEditor > MakeEditor(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectUIServices &services, const EffectOutputs *pOutputs, SettingType settings)