Audacity 3.2.0
Functions
anonymous_namespace{LV2Preferences.cpp} Namespace Reference

Functions

template<typename T >
bool GetSetting (const EffectDefinitionInterface &effect, const wchar_t *path, T &var, const T &defaultValue)
 
template<typename T >
bool SetSetting (EffectDefinitionInterface &effect, const wchar_t *path, const T &value)
 

Function Documentation

◆ GetSetting()

template<typename T >
bool anonymous_namespace{LV2Preferences.cpp}::GetSetting ( const EffectDefinitionInterface effect,
const wchar_t *  path,
T &  var,
const T &  defaultValue 
)

Definition at line 36 of file LV2Preferences.cpp.

38{
39 return GetConfig(effect, PluginSettings::Shared, SettingsStr, path,
40 var, defaultValue);
41}
static constexpr auto SettingsStr
bool GetConfig(const EffectDefinitionInterface &ident, ConfigurationType type, const RegistryPath &group, const RegistryPath &key, Value &var, const Value &defval)

References PluginSettings::GetConfig(), SettingsStr, and PluginSettings::Shared.

Referenced by LV2Preferences::GetBufferSize(), LV2Preferences::GetUseGUI(), and LV2Preferences::GetUseLatency().

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

◆ SetSetting()

template<typename T >
bool anonymous_namespace{LV2Preferences.cpp}::SetSetting ( EffectDefinitionInterface effect,
const wchar_t *  path,
const T &  value 
)

Definition at line 44 of file LV2Preferences.cpp.

46{
47 return SetConfig(effect, PluginSettings::Shared, SettingsStr, path,
48 value);
49}
bool SetConfig(const EffectDefinitionInterface &ident, ConfigurationType type, const RegistryPath &group, const RegistryPath &key, const Value &value)

References PluginSettings::SetConfig(), SettingsStr, and PluginSettings::Shared.

Referenced by LV2Preferences::SetBufferSize(), LV2Preferences::SetUseGUI(), and LV2Preferences::SetUseLatency().

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