| 1131 | |
| 1132 | |
| 1133 | void Engine::setParamSmoothValue(Module* module, int paramId, float value) { |
| 1134 | // If another param is being smoothed, jump value |
| 1135 | if (internal->smoothModule && !(internal->smoothModule == module && internal->smoothParamId == paramId)) { |
| 1136 | internal->smoothModule->params[internal->smoothParamId].setValue(internal->smoothValue); |
| 1137 | } |
| 1138 | internal->smoothParamId = paramId; |
| 1139 | internal->smoothValue = value; |
| 1140 | // Set this last so the above values are valid as soon as it is set |
| 1141 | internal->smoothModule = module; |
| 1142 | } |
| 1143 | |
| 1144 | |
| 1145 | float Engine::getParamSmoothValue(Module* module, int paramId) { |