Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::plugins::Plugin::ParamSync::Entry Struct Reference

Public Member Functions

 Entry (const Entry &)=delete
Entry & operator= (const Entry &)=delete
 Entry (Entry &&other) noexcept
Entry & operator= (Entry &&other) noexcept

Data Fields

float last_from_plugin = -1.f
 One-shot feedback guard: set when the plugin reports a value.
std::atomic< float > pending_value { -1.f }
 Cross-thread bridge: audio thread stores normalized value with release ordering; main thread exchanges with -1.f using acq_rel.

Detailed Description

Definition at line 355 of file plugin.h.

Constructor & Destructor Documentation

◆ Entry()

zrythm::plugins::Plugin::ParamSync::Entry::Entry ( Entry && other)
inlinenoexcept

Definition at line 375 of file plugin.h.

Member Function Documentation

◆ operator=()

Entry & zrythm::plugins::Plugin::ParamSync::Entry::operator= ( Entry && other)
inlinenoexcept

Definition at line 380 of file plugin.h.

Field Documentation

◆ last_from_plugin

float zrythm::plugins::Plugin::ParamSync::Entry::last_from_plugin = -1.f

One-shot feedback guard: set when the plugin reports a value.

On the next audio cycle, if the computed value matches, the send is skipped and the guard is consumed (reset to -1.f). Audio thread only.

Definition at line 363 of file plugin.h.

◆ pending_value

std::atomic<float> zrythm::plugins::Plugin::ParamSync::Entry::pending_value { -1.f }

Cross-thread bridge: audio thread stores normalized value with release ordering; main thread exchanges with -1.f using acq_rel.

-1.f means no pending value.

Definition at line 370 of file plugin.h.


The documentation for this struct was generated from the following file: