17#include "../../widgets/valnum.h"
31 wxT(
"BufferSize"), mBufferSize, 8192);
33 wxT(
"UseLatency"), mUseLatency,
true);
35 wxT(
"UseGUI"), mUseGUI,
true);
38 PopulateOrExchange(
S);
48 S.StartHorizontalLay(wxEXPAND, 1);
50 S.StartVerticalLay(
false);
52 S.StartStatic(
XO(
"Buffer Size"));
54 S.AddVariableText(
XO(
55"The buffer size controls the number of samples sent to the effect "
56"on each iteration. Smaller values will cause slower processing and "
57"some effects require 8192 samples or less to work properly. However "
58"most effects can accept large buffers and using them will greatly "
59"reduce processing time."),
62 S.StartHorizontalLay(wxALIGN_LEFT);
65 t =
S.Validator<IntegerValidator<int>>(
66 &
mBufferSize, NumValidatorStyle::DEFAULT, 8, 1048576 * 1)
67 .MinSize( { 100, -1 } )
68 .TieNumericTextBox(
XXO(
"&Buffer Size (8 to 1048576 samples):"),
76 S.StartStatic(
XO(
"Latency Compensation"));
78 S.AddVariableText(
XO(
79"As part of their processing, some VST effects must delay returning "
80"audio to Audacity. When not compensating for this delay, you will "
81"notice that small silences have been inserted into the audio. "
82"Enabling this option will provide that compensation, but it may "
83"not work for all VST effects."),
86 S.StartHorizontalLay(wxALIGN_LEFT);
88 S.TieCheckBox(
XXO(
"Enable &compensation"),
95 S.StartStatic(
XO(
"Graphical Mode"));
97 S.AddVariableText(
XO(
98"Most VST effects have a graphical interface for setting parameter values."
99" A basic text-only method is also available. "
100" Reopen the effect for this to take effect."),
102 S.TieCheckBox(
XXO(
"Enable &graphical interface"),
109 S.EndHorizontalLay();
111 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...
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
void OnOk(wxCommandEvent &evt)
const EffectDefinitionInterface & mEffect
void PopulateOrExchange(ShuttleGui &S)
virtual ~VSTEffectOptionsDialog()
bool SetConfig(const EffectDefinitionInterface &ident, ConfigurationType type, const RegistryPath &group, const RegistryPath &key, const Value &value)
bool GetConfig(const EffectDefinitionInterface &ident, ConfigurationType type, const RegistryPath &group, const RegistryPath &key, Value &var, const Value &defval)