Audacity 3.2.0
Classes | Variables
LV2Preferences Namespace Reference

Classes

class  Dialog
 

Functions

Persistent settings that can apply to any LV2 effect
bool GetBufferSize (const EffectDefinitionInterface &effect, int &bufferSize)
 
bool SetBufferSize (EffectDefinitionInterface &effect, int bufferSize)
 
bool GetUseLatency (const EffectDefinitionInterface &effect, bool &useLatency)
 
bool SetUseLatency (EffectDefinitionInterface &effect, bool useLatency)
 
bool GetUseGUI (const EffectDefinitionInterface &effect, bool &useGUI)
 
bool SetUseGUI (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 52 of file LV2Preferences.cpp.

54{
55 return GetSetting(effect, BufferSizeStr, bufferSize, 8192);
56}
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 76 of file LV2Preferences.cpp.

78{
79 return GetSetting(effect, UseGUIStr, useGUI, true);
80}
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 64 of file LV2Preferences.cpp.

66{
67 return GetSetting(effect, UseLatencyStr, useLatency, true);
68}
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 ( EffectDefinitionInterface effect,
int  bufferSize 
)

Definition at line 58 of file LV2Preferences.cpp.

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

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

Referenced by LV2Preferences::Dialog::OnOk().

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

◆ SetUseGUI()

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

Definition at line 82 of file LV2Preferences.cpp.

84{
85 return SetSetting(effect, UseGUIStr, useGUI);
86}

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

Referenced by LV2Preferences::Dialog::OnOk().

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

◆ SetUseLatency()

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

Definition at line 70 of file LV2Preferences.cpp.

72{
73 return SetSetting(effect, UseLatencyStr, useLatency);
74}

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

Referenced by LV2Preferences::Dialog::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 36 of file LV2Preferences.h.

Referenced by LV2Preferences::Dialog::PopulateOrExchange().