MCPcopy Create free account
hub / github.com/DISTRHO/DPF / setParameterValue

Function setParameterValue

examples/Latency/LatencyExamplePlugin.cpp:164–172  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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 */

Callers

nothing calls this directly

Calls 1

getSampleRateFunction · 0.50

Tested by

no test coverage detected