| 33 | |
| 34 | |
| 35 | float ParamQuantity::getValue() { |
| 36 | if (!module) |
| 37 | return 0.f; |
| 38 | // Get smoothing target value regardless of `smoothEnabled`. |
| 39 | // If smoothing is enabled, value is set, and smoothing is then disabled, calling getParamValue() will return the incorrect value. |
| 40 | return APP->engine->getParamSmoothValue(module, paramId); |
| 41 | } |
| 42 | |
| 43 | |
| 44 | void ParamQuantity::setImmediateValue(float value) { |
no test coverage detected