|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
Parameter changes made OFF the audio thread, handed to it. More...
#include <DSParkPlugin.h>
Public Member Functions | |
| void | mark (size_t index) noexcept |
| template<typename Apply > | |
| bool | drain (Apply &&apply) noexcept |
Parameter changes made OFF the audio thread, handed to it.
The plugin's setParameter forwards to DSPark setters, and several of those (Equalizer, DynamicEQ, FIRFilter, Biquad coefficient sets) are seqlocks with exactly ONE writer: two threads publishing into one of them can leave a torn configuration in force. While the host processes, a backend therefore never calls setParameter from the UI thread: an editor edit, a state load or a preset stores the new normalized value in the shadow and marks it here, and the audio thread applies every marked parameter at the start of its next block. mark() runs on any one control thread, drain() on the audio thread; both are lock-free and allocation-free.
Definition at line 1107 of file DSParkPlugin.h.
|
inlinenoexcept |
Calls apply(index) for every marked parameter; true if any.
Definition at line 1118 of file DSParkPlugin.h.
|
inlinenoexcept |
Definition at line 1110 of file DSParkPlugin.h.