Audacity 3.2.0
Variables
LV2Preferences Namespace Reference

Functions

Persistent settings that can apply to any LV2 effect
LV2_API bool GetBufferSize (const EffectDefinitionInterface &effect, int &bufferSize)
 
LV2_API bool SetBufferSize (const EffectDefinitionInterface &effect, int bufferSize)
 
LV2_API bool GetUseLatency (const EffectDefinitionInterface &effect, bool &useLatency)
 
LV2_API bool SetUseLatency (const EffectDefinitionInterface &effect, bool useLatency)
 
LV2_API bool GetUseGUI (const EffectDefinitionInterface &effect, bool &useGUI)
 
LV2_API bool SetUseGUI (const EffectDefinitionInterface &effect, bool useGUI)
 

Variables

constexpr auto DEFAULT_BLOCKSIZE = 1048576
 Maximum block size in number of samples (not bytes) More...
 

Function Documentation

◆ GetBufferSize()

bool LV2Preferences::GetBufferSize ( const EffectDefinitionInterface effect,
int &  bufferSize 
)

Definition at line 50 of file LV2Preferences.cpp.

52{
53 return GetSetting(effect, BufferSizeStr, bufferSize, 8192);
54}
static constexpr auto BufferSizeStr
bool GetSetting(const EffectDefinitionInterface &effect, const wchar_t *path, T &var, const T &defaultValue)

References BufferSizeStr, and anonymous_namespace{LV2Preferences.cpp}::GetSetting().

Referenced by LV2Instance::LV2Instance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetUseGUI()

bool LV2Preferences::GetUseGUI ( const EffectDefinitionInterface effect,
bool &  useGUI 
)

Definition at line 74 of file LV2Preferences.cpp.

76{
77 return GetSetting(effect, UseGUIStr, useGUI, true);
78}
static constexpr auto UseGUIStr

References anonymous_namespace{LV2Preferences.cpp}::GetSetting(), and UseGUIStr.

Referenced by LV2Effect::PopulateUI().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetUseLatency()

bool LV2Preferences::GetUseLatency ( const EffectDefinitionInterface effect,
bool &  useLatency 
)

Definition at line 62 of file LV2Preferences.cpp.

64{
65 return GetSetting(effect, UseLatencyStr, useLatency, true);
66}
static constexpr auto UseLatencyStr

References anonymous_namespace{LV2Preferences.cpp}::GetSetting(), and UseLatencyStr.

Referenced by LV2Instance::LV2Instance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetBufferSize()

bool LV2Preferences::SetBufferSize ( const EffectDefinitionInterface effect,
int  bufferSize 
)

Definition at line 56 of file LV2Preferences.cpp.

58{
59 return SetSetting(effect, BufferSizeStr, bufferSize);
60}
bool SetSetting(const EffectDefinitionInterface &effect, const wchar_t *path, const T &value)

References BufferSizeStr, and anonymous_namespace{LV2Preferences.cpp}::SetSetting().

Referenced by LV2PreferencesDialog::OnOk().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetUseGUI()

bool LV2Preferences::SetUseGUI ( const EffectDefinitionInterface effect,
bool  useGUI 
)

Definition at line 80 of file LV2Preferences.cpp.

82{
83 return SetSetting(effect, UseGUIStr, useGUI);
84}

References anonymous_namespace{LV2Preferences.cpp}::SetSetting(), and UseGUIStr.

Referenced by LV2PreferencesDialog::OnOk().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetUseLatency()

bool LV2Preferences::SetUseLatency ( const EffectDefinitionInterface effect,
bool  useLatency 
)

Definition at line 68 of file LV2Preferences.cpp.

70{
71 return SetSetting(effect, UseLatencyStr, useLatency);
72}

References anonymous_namespace{LV2Preferences.cpp}::SetSetting(), and UseLatencyStr.

Referenced by LV2PreferencesDialog::OnOk().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DEFAULT_BLOCKSIZE

constexpr auto LV2Preferences::DEFAULT_BLOCKSIZE = 1048576
constexpr

Maximum block size in number of samples (not bytes)

Definition at line 33 of file LV2Preferences.h.

Referenced by LV2PreferencesDialog::PopulateOrExchange().