Change a parameter value. The host may call this function from any context, including realtime processing. When a parameter is marked as automatable, you must ensure no non-realtime operations are performed. @note This function will only be called for parameter inputs. */
| 162 | @note This function will only be called for parameter inputs. |
| 163 | */ |
| 164 | void setParameterValue(uint32_t index, float value) override |
| 165 | { |
| 166 | if (index != 0) |
| 167 | return; |
| 168 | |
| 169 | fLatency = value; |
| 170 | fLatencyInFrames = value*getSampleRate(); |
| 171 | setLatency(fLatencyInFrames); |
| 172 | } |
| 173 | |
| 174 | /* -------------------------------------------------------------------------------------------------------- |
| 175 | * Audio/MIDI Processing */ |
nothing calls this directly
no test coverage detected