Audacity 3.2.0
Functions | Variables
ReverbBase.cpp File Reference
#include "ReverbBase.h"
#include "ShuttleAutomation.h"
Include dependency graph for ReverbBase.cpp:

Go to the source code of this file.

Functions

bool operator== (const ReverbSettings &a, const ReverbSettings &b)
 
bool OnlySimpleParametersChanged (const ReverbSettings &a, const ReverbSettings &b)
 

Variables

struct {
   const TranslatableString   name
 
   ReverbSettings   preset
 
FactoryPresets []
 
static size_t BLOCK = 16384
 

Function Documentation

◆ OnlySimpleParametersChanged()

bool OnlySimpleParametersChanged ( const ReverbSettings a,
const ReverbSettings b 
)

Definition at line 369 of file ReverbBase.cpp.

371{
372 // A "simple" reverb parameter is one that when changed, does not require the
373 // reverb allpass/comb filters to be reset. This distinction enables us to
374 // code things so that the user can keep hearing the processed sound while
375 // they tweak one of the simple parameters.
376
377 const bool oneSimpleParameterChanged =
378
379 (a.mReverberance != b.mReverberance) || (a.mHfDamping != b.mHfDamping) ||
380 (a.mToneLow != b.mToneLow) || (a.mToneHigh != b.mToneHigh) ||
381 (a.mWetGain != b.mWetGain);
382
383 const bool allNonSimpleParametersStayedTheSame =
384
385 (a.mRoomSize == b.mRoomSize) && (a.mPreDelay == b.mPreDelay) &&
386 (a.mStereoWidth == b.mStereoWidth);
387
388 return oneSimpleParameterChanged && allNonSimpleParametersStayedTheSame;
389}
double mPreDelay
Definition: ReverbBase.h:21
double mReverberance
Definition: ReverbBase.h:22
double mToneHigh
Definition: ReverbBase.h:25
double mWetGain
Definition: ReverbBase.h:26
double mToneLow
Definition: ReverbBase.h:24
double mHfDamping
Definition: ReverbBase.h:23
double mRoomSize
Definition: ReverbBase.h:20
double mStereoWidth
Definition: ReverbBase.h:28

Referenced by ReverbBase::Instance::RealtimeProcess().

Here is the caller graph for this function:

◆ operator==()

bool operator== ( const ReverbSettings a,
const ReverbSettings b 
)

Definition at line 358 of file ReverbBase.cpp.

359{
360 // With C++20, all of this can be replaced by =default
361 return (a.mRoomSize == b.mRoomSize) && (a.mPreDelay == b.mPreDelay) &&
362 (a.mReverberance == b.mReverberance) &&
363 (a.mHfDamping == b.mHfDamping) && (a.mToneLow == b.mToneLow) &&
364 (a.mToneHigh == b.mToneHigh) && (a.mWetGain == b.mWetGain) &&
365 (a.mDryGain == b.mDryGain) && (a.mStereoWidth == b.mStereoWidth) &&
366 (a.mWetOnly == b.mWetOnly);
367}
double mDryGain
Definition: ReverbBase.h:27

Variable Documentation

◆ BLOCK

size_t BLOCK = 16384
static

◆ 

const struct { ... } FactoryPresets[]

◆ name

const TranslatableString name

Definition at line 24 of file ReverbBase.cpp.

Referenced by ReverbBase::GetFactoryPresets().

◆ preset