| 56 | } // namespace |
| 57 | |
| 58 | CompressorEditor::CompressorEditor( |
| 59 | wxWindow* parent, CompressorInstance& instance, bool isRealtime, |
| 60 | const EffectUIServices& services, EffectSettingsAccess& access, |
| 61 | CompressorSettings settings) |
| 62 | : DynamicRangeProcessorEditor { parent, instance, isRealtime, services, |
| 63 | access } |
| 64 | , mSettings { std::move(settings) } |
| 65 | { |
| 66 | Initialize({ { mSettings.thresholdDb, compressorThresholdDbAttributes, |
| 67 | std::make_shared<ParameterWrapper>(thresholdDb), |
| 68 | ControllerCategory::CompressionCurve }, |
| 69 | { mSettings.makeupGainDb, compressorMakupGainDbAttributes, |
| 70 | std::make_shared<ParameterWrapper>(makeupGainDb), |
| 71 | ControllerCategory::CompressionCurve }, |
| 72 | { mSettings.kneeWidthDb, kneeWidthDbAttributes, |
| 73 | std::make_shared<ParameterWrapper>(kneeWidthDb), |
| 74 | ControllerCategory::CompressionCurve }, |
| 75 | { mSettings.compressionRatio, compressionRatioAttributes, |
| 76 | std::make_shared<ParameterWrapper>(compressionRatio), |
| 77 | ControllerCategory::CompressionCurve }, |
| 78 | { mSettings.lookaheadMs, lookaheadMsAttributes, |
| 79 | std::make_shared<ParameterWrapper>(lookaheadMs), |
| 80 | ControllerCategory::TimeSmoothing }, |
| 81 | { mSettings.attackMs, attackMsAttributes, |
| 82 | std::make_shared<ParameterWrapper>(attackMs), |
| 83 | ControllerCategory::TimeSmoothing }, |
| 84 | { mSettings.releaseMs, releaseMsAttributes, |
| 85 | std::make_shared<ParameterWrapper>(releaseMs), |
| 86 | ControllerCategory::TimeSmoothing } }); |
| 87 | } |
nothing calls this directly
no test coverage detected