17#pragma GCC diagnostic ignored "-Wparentheses"
18#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
19#elif defined(__clang__)
20#pragma clang diagnostic ignored "-Wparentheses"
21#pragma clang diagnostic ignored "-Wdeprecated-declarations"
28#include "../../widgets/valnum.h"
44 PopulateOrExchange(
S);
52 S.StartHorizontalLay(wxEXPAND, 1);
54 S.StartVerticalLay(
false);
60 S.StartStatic(
XO(
"Buffer Size"));
65 S.AddVariableText(
XO(
66"The buffer size controls the number of samples sent to the effect "
67"on each iteration. Smaller values will cause slower processing and "
68"some effects require 8192 samples or less to work properly. However "
69"most effects can accept large buffers and using them will greatly "
70"reduce processing time."),
73 S.StartHorizontalLay(wxALIGN_LEFT);
76 t =
S.TieNumericTextBox(
77 XXO(
"&Buffer Size (8 to %d) samples:")
81 t->SetMinSize(wxSize(100, -1));
88 S.StartStatic(
XO(
"Latency Compensation"));
90 S.AddVariableText(
XO(
91"As part of their processing, some LV2 effects must delay returning "
92"audio to Audacity. When not compensating for this delay, you will "
93"notice that small silences have been inserted into the audio. "
94"Enabling this setting will provide that compensation, but it may "
95"not work for all LV2 effects."),
98 S.StartHorizontalLay(wxALIGN_LEFT);
100 S.TieCheckBox(
XXO(
"Enable &compensation"),
103 S.EndHorizontalLay();
107 S.StartStatic(
XO(
"Graphical Mode"));
109 S.AddVariableText(
XO(
110"LV2 effects can have a graphical interface for setting parameter values."
111" A basic text-only method is also available. "
112" Reopen the effect for this to take effect."),
114 S.TieCheckBox(
XXO(
"Enable &graphical interface"),
121 S.EndHorizontalLay();
123 S.AddStandardButtons();
EVT_BUTTON(wxID_NO, DependencyDialog::OnNo) EVT_BUTTON(wxID_YES
XXO("&Cut/Copy/Paste Toolbar")
EffectDefinitionInterface is a ComponentInterface that adds some basic read-only information about ef...
const EffectDefinitionInterface & mEffect
virtual ~LV2PreferencesDialog()
void PopulateOrExchange(ShuttleGui &S)
void OnOk(wxCommandEvent &evt)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
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)