Audacity 3.2.0
Namespaces | Macros | Functions | Variables
AutoDuck.cpp File Reference
#include "AutoDuck.h"
#include "EffectEditor.h"
#include "LoadEffects.h"
#include <wx/dcclient.h>
#include <wx/dcmemory.h>
#include "AColor.h"
#include "AllThemeResources.h"
#include "Prefs.h"
#include "ShuttleGui.h"
#include "Theme.h"
#include "../widgets/valnum.h"
Include dependency graph for AutoDuck.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{AutoDuck.cpp}
 

Macros

#define CONTROL_POINT_REGION   10
 
#define CONTROL_POINT_MIN_MOVE   5
 
#define TEXT_DISTANCE   15
 
#define FADE_DOWN_START   150
 
#define FADE_UP_START   450
 
#define DUCK_AMOUNT_START   50
 
#define FADE_SCALE   40
 
#define DUCK_AMOUNT_SCALE   8
 

Functions

static int GetDistance (const wxPoint &first, const wxPoint &second)
 

Variables

BuiltinEffectsModule::Registration< EffectAutoDuckanonymous_namespace{AutoDuck.cpp}::reg
 

Macro Definition Documentation

◆ CONTROL_POINT_MIN_MOVE

#define CONTROL_POINT_MIN_MOVE   5

Definition at line 148 of file AutoDuck.cpp.

◆ CONTROL_POINT_REGION

#define CONTROL_POINT_REGION   10

Definition at line 147 of file AutoDuck.cpp.

◆ DUCK_AMOUNT_SCALE

#define DUCK_AMOUNT_SCALE   8

Definition at line 157 of file AutoDuck.cpp.

◆ DUCK_AMOUNT_START

#define DUCK_AMOUNT_START   50

Definition at line 154 of file AutoDuck.cpp.

◆ FADE_DOWN_START

#define FADE_DOWN_START   150

Definition at line 152 of file AutoDuck.cpp.

◆ FADE_SCALE

#define FADE_SCALE   40

Definition at line 156 of file AutoDuck.cpp.

◆ FADE_UP_START

#define FADE_UP_START   450

Definition at line 153 of file AutoDuck.cpp.

◆ TEXT_DISTANCE

#define TEXT_DISTANCE   15

Definition at line 150 of file AutoDuck.cpp.

Function Documentation

◆ GetDistance()

static int GetDistance ( const wxPoint &  first,
const wxPoint &  second 
)
static

Definition at line 159 of file AutoDuck.cpp.

160{
161 int distanceX = abs(first.x - second.x);
162 int distanceY = abs(first.y - second.y);
163 if (distanceX > distanceY)
164 return distanceX;
165 else
166 return distanceY;
167}

Referenced by EffectAutoDuck::Panel::GetNearestControlPoint().

Here is the caller graph for this function: