Audacity 3.2.0
|
Main thread's interface to inter-thread communication of changes of settings. More...
Public Member Functions | |
Access ()=default | |
Access (RealtimeEffectState &state) | |
~Access () override=default | |
const EffectSettings & | Get () override |
void | Set (EffectSettings &&settings, std::unique_ptr< Message > pMessage) override |
void | Set (std::unique_ptr< Message > pMessage) override |
Message-only overload of Set(). In future, this should be the only one. More... | |
void | Flush () override |
Make the last Set changes "persistent" in underlying storage. More... | |
bool | IsSameAs (const EffectSettingsAccess &other) const override |
Public Member Functions inherited from EffectSettingsAccess | |
virtual | ~EffectSettingsAccess () |
virtual const EffectSettings & | Get ()=0 |
virtual void | Set (EffectSettings &&settings, std::unique_ptr< Message > pMessage=nullptr)=0 |
virtual void | Set (std::unique_ptr< Message > pMessage=nullptr)=0 |
Message-only overload of Set(). In future, this should be the only one. More... | |
virtual void | Flush ()=0 |
Make the last Set changes "persistent" in underlying storage. More... | |
virtual bool | IsSameAs (const EffectSettingsAccess &other) const =0 |
template<typename Function > | |
void | ModifySettings (Function &&function) |
Do a correct read-modify-write of settings. More... | |
Public Attributes | |
std::weak_ptr< RealtimeEffectState > | mwState |
Store no state here but this weak pointer, so IsSameAs isn't lying. More... | |
Main thread's interface to inter-thread communication of changes of settings.
Definition at line 192 of file RealtimeEffectState.cpp.
|
default |
|
inlineexplicit |
Definition at line 194 of file RealtimeEffectState.cpp.
|
overridedefault |
|
inlineoverridevirtual |
Make the last Set
changes "persistent" in underlying storage.
Implements EffectSettingsAccess.
Definition at line 278 of file RealtimeEffectState.cpp.
References mwState.
|
inlineoverridevirtual |
Implements EffectSettingsAccess.
Definition at line 201 of file RealtimeEffectState.cpp.
References mwState.
|
inlineoverridevirtual |
Implements EffectSettingsAccess.
Definition at line 303 of file RealtimeEffectState.cpp.
References mwState.
|
inlineoverridevirtual |
Implements EffectSettingsAccess.
Definition at line 223 of file RealtimeEffectState.cpp.
References mwState, EffectInstance::MessagePackage::settings, and settings().
|
inlineoverridevirtual |
Message-only overload of Set(). In future, this should be the only one.
Implements EffectSettingsAccess.
Definition at line 252 of file RealtimeEffectState.cpp.
References mwState.
std::weak_ptr<RealtimeEffectState> RealtimeEffectState::Access::mwState |
Store no state here but this weak pointer, so IsSameAs
isn't lying.
Definition at line 313 of file RealtimeEffectState.cpp.
Referenced by Flush(), Get(), IsSameAs(), and Set().