| 228 | } |
| 229 | |
| 230 | void FloatSliderLFOControl::SetLFOEnabled(bool enabled) |
| 231 | { |
| 232 | if (enabled && !mEnabled && !TheSynth->IsLoadingState()) //if turning on |
| 233 | { |
| 234 | if (GetSliderTarget()) |
| 235 | { |
| 236 | GetMin() = GetSliderTarget()->GetValue(); |
| 237 | GetMax() = GetSliderTarget()->GetValue(); |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | mEnabled = enabled; |
| 242 | } |
| 243 | |
| 244 | void FloatSliderLFOControl::SetOwner(FloatSlider* owner) |
| 245 | { |
no test coverage detected