Audacity 3.2.0
LV2Preferences.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file LV2Preferences.h
6 @brief Persistent settings that can apply to any LV2 effect
7
8 Paul Licameli split from LV2Effect.cpp
9
10 Audacity(R) is copyright (c) 1999-2008 Audacity Team.
11 License: GPL v2 or later. See License.txt.
12
13**********************************************************************/
14
15#ifndef __AUDACITY_LV2_PREFERENCES__
16#define __AUDACITY_LV2_PREFERENCES__
17
18#if defined(USE_LV2)
19
20#if defined(__GNUC__)
21#pragma GCC diagnostic ignored "-Wparentheses"
22#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
23#elif defined(__clang__)
24#pragma clang diagnostic ignored "-Wparentheses"
25#pragma clang diagnostic ignored "-Wdeprecated-declarations"
26#endif
27
29
30
31namespace LV2Preferences {
33constexpr auto DEFAULT_BLOCKSIZE = 1048576;
34
38LV2_API
39bool GetBufferSize(const EffectDefinitionInterface &effect, int &bufferSize);
40LV2_API
41bool SetBufferSize(const EffectDefinitionInterface &effect, int bufferSize);
42
43LV2_API
44bool GetUseLatency(const EffectDefinitionInterface &effect, bool &useLatency);
45LV2_API
46bool SetUseLatency(const EffectDefinitionInterface &effect, bool useLatency);
47
48LV2_API
49bool GetUseGUI(const EffectDefinitionInterface &effect, bool &useGUI);
50LV2_API
51bool SetUseGUI(const EffectDefinitionInterface &effect, bool useGUI);
55}
56
57#endif
58#endif
EffectDefinitionInterface is a ComponentInterface that adds some basic read-only information about ef...
LV2_API bool GetUseGUI(const EffectDefinitionInterface &effect, bool &useGUI)
constexpr auto DEFAULT_BLOCKSIZE
Maximum block size in number of samples (not bytes)
LV2_API bool GetUseLatency(const EffectDefinitionInterface &effect, bool &useLatency)
LV2_API bool SetBufferSize(const EffectDefinitionInterface &effect, int bufferSize)
LV2_API bool SetUseLatency(const EffectDefinitionInterface &effect, bool useLatency)
LV2_API bool SetUseGUI(const EffectDefinitionInterface &effect, bool useGUI)
LV2_API bool GetBufferSize(const EffectDefinitionInterface &effect, int &bufferSize)