| 50 | } // namespace |
| 51 | |
| 52 | LimiterEditor::LimiterEditor( |
| 53 | wxWindow* parent, CompressorInstance& instance, bool isRealtime, |
| 54 | const EffectUIServices& services, EffectSettingsAccess& access, |
| 55 | LimiterSettings settings) |
| 56 | : DynamicRangeProcessorEditor { parent, instance, isRealtime, services, |
| 57 | access } |
| 58 | , mSettings { std::move(settings) } |
| 59 | { |
| 60 | Initialize({ { mSettings.thresholdDb, limiterThresholdDbAttributes, |
| 61 | std::make_shared<ParameterWrapper>(thresholdDb), |
| 62 | ControllerCategory::CompressionCurve }, |
| 63 | { mSettings.makeupTargetDb, limiterMakeupTargetDbAttributes, |
| 64 | std::make_shared<ParameterWrapper>(makeupTargetDb), |
| 65 | ControllerCategory::CompressionCurve }, |
| 66 | { mSettings.kneeWidthDb, kneeWidthDbAttributes, |
| 67 | std::make_shared<ParameterWrapper>(kneeWidthDb), |
| 68 | ControllerCategory::CompressionCurve }, |
| 69 | { mSettings.lookaheadMs, lookaheadMsAttributes, |
| 70 | std::make_shared<ParameterWrapper>(lookaheadMs), |
| 71 | ControllerCategory::TimeSmoothing }, |
| 72 | { mSettings.releaseMs, releaseMsAttributes, |
| 73 | std::make_shared<ParameterWrapper>(releaseMs), |
| 74 | ControllerCategory::TimeSmoothing } }); |
| 75 | } |
nothing calls this directly
no test coverage detected