Audacity  2.2.0
Meter.cpp File Reference
#include "../Audacity.h"
#include "Meter.h"
#include <algorithm>
#include <wx/app.h>
#include <wx/defs.h>
#include <wx/dialog.h>
#include <wx/dcbuffer.h>
#include <wx/dcmemory.h>
#include <wx/image.h>
#include <wx/intl.h>
#include <wx/menu.h>
#include <wx/settings.h>
#include <wx/textdlg.h>
#include <wx/numdlg.h>
#include <wx/radiobut.h>
#include <wx/tooltip.h>
#include <wx/msgdlg.h>
#include <math.h>
#include "../AudioIO.h"
#include "../AColor.h"
#include "../ImageManipulation.h"
#include "../prefs/GUISettings.h"
#include "../Project.h"
#include "../toolbars/MeterToolBar.h"
#include "../toolbars/ControlToolBar.h"
#include "../Prefs.h"
#include "../ShuttleGui.h"
#include "../Theme.h"
#include "../AllThemeResources.h"
#include "../Experimental.h"
#include "../widgets/valnum.h"
#include "../../images/SpeakerMenu.xpm"
#include "../../images/MicMenu.xpm"

Enumerations

enum  { OnMeterUpdateID = 6000, OnMonitorID, OnPreferencesID }
 

Functions

 DEFINE_EVENT_TYPE (EVT_METER_PREFERENCES_CHANGED)
 
static float floatMax (float a, float b)
 
static int intmax (int a, int b)
 
static float ClipZeroToOne (float z)
 
static float ToDB (float v, float range)
 

Variables

static const long MIN_REFRESH_RATE = 1
 
static const long MAX_REFRESH_RATE = 100
 
static const int gap = 2
 
static const wxChar * PrefStyles []
 

Enumeration Type Documentation

anonymous enum
Enumerator
OnMeterUpdateID 
OnMonitorID 
OnPreferencesID 

Function Documentation

static float ClipZeroToOne ( float  z)
static

Referenced by ToDB().

DEFINE_EVENT_TYPE ( EVT_METER_PREFERENCES_CHANGED  )
static float floatMax ( float  a,
float  b 
)
static
static int intmax ( int  a,
int  b 
)
static

Referenced by Meter::HandleLayout().

static float ToDB ( float  v,
float  range 
)
static

References ClipZeroToOne(), and LINEAR_TO_DB.

Referenced by Meter::OnMeterUpdate().

Variable Documentation

const long MAX_REFRESH_RATE = 100
static
const long MIN_REFRESH_RATE = 1
static
const wxChar* PrefStyles[]
static
Initial value:
=
{
wxT("AutomaticStereo"),
wxT("HorizontalStereo"),
wxT("VerticalStereo")
}