13 static wxString
key(
"LastUsedDuration");
31 std::unique_ptr<Message>)
49 return &this->
mSettings == &pOther->mSettings;
57 name.Trim(
true).Trim(
false);
62 wxStringTokenizer st(
name,
wxT(
" "));
66 while (st.HasMoreTokens()) {
67 wxString tok = st.GetNextToken();
68 id += tok.Left(1).MakeUpper() + tok.Mid(1).MakeLower();
171 const float *
const *,
float *
const *,
size_t)
238 group += wxCONFIG_PATH_SEPARATOR +
name;
RegistryPath UserPresetsGroup(const RegistryPath &name)
Compute part of a registry path, given a name which may be empty.
const RegistryPath & FactoryDefaultsGroup()
Component of a configuration key path, for default state of MakeSettings()
const RegistryPath & CurrentSettingsGroup()
Component of a configuration key path, for last-used destructive settings.
static CommandHandlerObject & ident(AudacityProject &project)
static Settings & settings()
virtual EffectType GetType() const =0
Type determines how it behaves.
virtual bool IsHiddenFromMenus() const
Default is false.
virtual bool EnablesDebug() const
Whether the effect dialog should have a Debug button; default, always false.
virtual FilePath HelpPage() const
Fully qualified local help file name, default is empty.
virtual EffectType GetClassification() const
Determines which menu it appears in; default same as GetType().
virtual ManualPageID ManualPage() const
Name of a page in the Audacity alpha manual, default is empty.
static Identifier GetSquashedName(const Identifier &ident)
A utility that strips spaces and CamelCases a name.
virtual ~EffectDefinitionInterface()
virtual ~EffectInstanceFactory()
virtual size_t GetTailSize() const
virtual bool RealtimeAddProcessor(EffectSettings &settings, EffectOutputs *pOutputs, unsigned numChannels, float sampleRate)
virtual bool RealtimeSuspend()
virtual bool RealtimeResume()
virtual bool RealtimeInitialize(EffectSettings &settings, double sampleRate)
virtual bool RealtimeProcessEnd(EffectSettings &settings) noexcept
settings can be updated to let a dialog change appearance at idle
virtual bool NeedsDither() const
virtual bool RealtimeFinalize(EffectSettings &settings) noexcept
virtual SampleCount GetLatency(const EffectSettings &settings, double sampleRate) const
virtual std::unique_ptr< Message > MakeMessage() const
Called on the main thread, in which the result may be cloned.
virtual bool UsesMessages() const noexcept
virtual void RealtimePassThrough(size_t group, EffectSettings &settings, const float *const *inBuf, size_t numSamples)
Called instead of RealtimeProcess when the effect is bypassed. Default implementation does nothing.
virtual bool RealtimeProcessStart(MessagePackage &package)
settings are possibly changed, since last call, by an asynchronous dialog
virtual ~EffectInstance()
virtual size_t RealtimeProcess(size_t group, EffectSettings &settings, const float *const *inBuf, float *const *outBuf, size_t numSamples)
size_t SetBlockSize(size_t maxBlockSize) override
~EffectInstanceWithBlockSize() override
size_t GetBlockSize() const override
Hold values to send to effect output meters.
Type of messages to send from main thread to processing.
virtual ~EffectSettingsAccess()
virtual bool VisitSettings(SettingsVisitor &visitor, EffectSettings &settings)
virtual ~EffectSettingsManager()
virtual bool CopySettingsContents(const EffectSettings &src, EffectSettings &dst) const
Update one settings object from another.
virtual std::unique_ptr< EffectOutputs > MakeOutputs() const
Produce an object to hold values to send to effect output meters.
virtual EffectSettings MakeSettings() const
An explicitly nonlocalized string, not meant for the user to see.
Visitor of effect or command parameters. This is a base class with lots of virtual functions that do ...
Implementation of EffectSettings for cases where there is only one thread.
EffectSettings & mSettings
void Flush() override
Make the last Set changes "persistent" in underlying storage.
bool IsSameAs(const EffectSettingsAccess &other) const override
const EffectSettings & Get() override
~SimpleEffectSettingsAccess() override
void Set(EffectSettings &&settings, std::unique_ptr< Message > pMessage) override
constexpr auto maxBlockSize
Externalized state of a plug-in.