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

Go to the source code of this file.

Classes

struct  Reverb_priv_t
 
struct  EffectReverb::Validator
 
struct  EffectReverb::Instance
 

Namespaces

namespace  anonymous_namespace{Reverb.cpp}
 

Macros

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

Variables

struct {
   const TranslatableString   name
 
   EffectReverbSettings   preset
 
FactoryPresets []
 
BuiltinEffectsModule::Registration< EffectReverbanonymous_namespace{Reverb.cpp}::reg
 
static size_t BLOCK = 16384
 

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));
#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 101 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, &Validator::On ## n ## Text);\
\
m ## n ## S = S.Style(wxSL_HORIZONTAL).AddSlider( {}, n.def, n.max, n.min); \
BindTo(*m ## n ## S, wxEVT_SLIDER, &Validator::On ## n ## Slider);

Definition at line 101 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 460 of file Reverb.cpp.

◆ SpinSliderHandlers [2/2]

#define SpinSliderHandlers (   n)
Value:
void EffectReverb::Validator::On ## n ## Slider(wxCommandEvent & evt) \
{ \
if (mProcessingEvent) return; \
mProcessingEvent = true; \
m ## n ## T->SetValue(wxString::Format(wxT("%d"), evt.GetInt())); \
mProcessingEvent = false; \
ValidateUI(); \
} \
void EffectReverb::Validator::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(); \
}

Definition at line 460 of file Reverb.cpp.

Variable Documentation

◆ BLOCK

size_t BLOCK = 16384
static

◆ 

const struct { ... } FactoryPresets[]
Initial value:
=
{
{ XO("Vocal I" ), { 70, 20, 40, 99, 100, 50, -12, 0, 70, false } },
{ XO("Vocal II"), { 50, 0, 50, 99, 50, 100, -1, -1, 70, false } },
{ XO("Bathroom"), { 16, 8, 80, 0, 0, 100, -6, 0, 100, false } },
{ XO("Small Room Bright"), { 30, 10, 50, 50, 50, 100, -1, -1, 100, false } },
{ XO("Small Room Dark"), { 30, 10, 50, 50, 100, 0, -1, -1, 100, false } },
{ XO("Medium Room"), { 75, 10, 40, 50, 100, 70, -1, -1, 70, false } },
{ XO("Large Room"), { 85, 10, 40, 50, 100, 80, 0, -6, 90, false } },
{ XO("Church Hall"), { 90, 32, 60, 50, 100, 50, 0, -12, 100, false } },
{ XO("Cathedral"), { 90, 16, 90, 50, 100, 0, 0, -20, 100, false } },
}
#define XO(s)
Definition: Internat.h:31

Referenced by EffectReverb::GetFactoryPresets(), and EffectReverb::LoadFactoryPreset().

◆ name

const TranslatableString name

Definition at line 45 of file Reverb.cpp.

Referenced by EffectReverb::GetFactoryPresets().

◆ preset