Audacity 3.2.0
Classes | Namespaces | Macros | Functions | Variables
Reverb.cpp File Reference
#include "Reverb.h"
#include "EffectEditor.h"
#include "LoadEffects.h"
#include <wx/arrstr.h>
#include <wx/checkbox.h>
#include <wx/slider.h>
#include <wx/spinctrl.h>
#include "Prefs.h"
#include "ShuttleGui.h"
#include "../widgets/valnum.h"
Include dependency graph for Reverb.cpp:

Go to the source code of this file.

Classes

struct  EffectReverb::Editor
 

Namespaces

namespace  anonymous_namespace{Reverb.cpp}
 

Macros

#define SpinSlider(n)
 
#define SpinSliderHandlers(n)
 
#define SpinSlider(n, p)
 
#define SetSpinSlider(n)
 
#define SpinSliderHandlers(n)
 

Functions

 SpinSliderHandlers (RoomSize) SpinSliderHandlers(PreDelay) SpinSliderHandlers(Reverberance) SpinSliderHandlers(HfDamping) SpinSliderHandlers(ToneLow) SpinSliderHandlers(ToneHigh) SpinSliderHandlers(WetGain) SpinSliderHandlers(DryGain) SpinSliderHandlers(StereoWidth) void EffectReverb
 

Variables

BuiltinEffectsModule::Registration< EffectReverbanonymous_namespace{Reverb.cpp}::reg
 

Macro Definition Documentation

◆ SetSpinSlider

#define SetSpinSlider (   n)
Value:
m ## n ## S->SetValue((int) rs.m ## n); \
m ## n ## T->SetValue(wxString::Format(wxT("%d"), (int) rs.m ## n));
wxT("CloseDown"))
#define S(N)
Definition: ToChars.cpp:64

◆ SpinSlider [1/2]

#define SpinSlider (   n)
Value:
wxSpinCtrl *m ## n ## T; \
wxSlider *m ## n ## S;

Definition at line 51 of file Reverb.cpp.

◆ SpinSlider [2/2]

#define SpinSlider (   n,
 
)
Value:
m ## n ## T = S.AddSpinCtrl( p, n.def, n.max, n.min); \
BindTo(*m ## n ## T, wxEVT_SPINCTRL, &Editor::On ## n ## Text);\
\
m ## n ## S = S.Style(wxSL_HORIZONTAL).AddSlider( {}, n.def, n.max, n.min); \
BindTo(*m ## n ## S, wxEVT_SLIDER, &Editor::On ## n ## Slider);

Definition at line 51 of file Reverb.cpp.

◆ SpinSliderHandlers [1/2]

#define SpinSliderHandlers (   n)
Value:
void On ## n ## Slider(wxCommandEvent & evt); \
void On ## n ## Text(wxCommandEvent & evt);

Definition at line 209 of file Reverb.cpp.

◆ SpinSliderHandlers [2/2]

#define SpinSliderHandlers (   n)
Value:
void EffectReverb::Editor::On ## n ## Slider(wxCommandEvent & evt) \
{ \
if (mProcessingEvent) return; \
mProcessingEvent = true; \
m ## n ## T->SetValue(wxString::Format(wxT("%d"), evt.GetInt())); \
mProcessingEvent = false; \
ValidateUI(); \
Publish(EffectSettingChanged{}); \
} \
void EffectReverb::Editor::On ## n ## Text(wxCommandEvent & evt) \
{ \
if (mProcessingEvent) return; \
mProcessingEvent = true; \
m ## n ## S->SetValue(std::clamp<long>(evt.GetInt(), n.min, n.max)); \
mProcessingEvent = false; \
ValidateUI(); \
Publish(EffectSettingChanged{}); \
}
Message sent by EffectEditor when a setting is changed by the user.
Definition: EffectEditor.h:26

Definition at line 209 of file Reverb.cpp.

Function Documentation

◆ SpinSliderHandlers()

SpinSliderHandlers ( RoomSize  )

Definition at line 229 of file Reverb.cpp.

240{
241 ValidateUI();
242 Publish(EffectSettingChanged{});
243}

References BasicEffectUIServices::ValidateUI().

Here is the call graph for this function: