Audacity 3.2.0
Namespaces | Macros | Enumerations | Functions | Variables
MixerBoard.cpp File Reference
#include "MixerBoard.h"
#include <cfloat>
#include <math.h>
#include <wx/setup.h>
#include <wx/app.h>
#include <wx/bmpbuttn.h>
#include <wx/dcclient.h>
#include <wx/icon.h>
#include <wx/settings.h>
#include "AColor.h"
#include "AllThemeResources.h"
#include "AudioIO.h"
#include "NoteTrack.h"
#include "AudioSegmentSampleView.h"
#include "CommonCommandFlags.h"
#include "KeyboardCapture.h"
#include "prefs/GUISettings.h"
#include "PendingTracks.h"
#include "Project.h"
#include "ProjectAudioIO.h"
#include "ProjectAudioManager.h"
#include "ProjectHistory.h"
#include "ProjectFileIO.h"
#include "ProjectWindow.h"
#include "ProjectWindows.h"
#include "SelectUtilities.h"
#include "Theme.h"
#include "TrackPanel.h"
#include "TrackUtilities.h"
#include "UndoManager.h"
#include "Viewport.h"
#include "WaveTrack.h"
#include "widgets/AButton.h"
#include "widgets/MeterPanel.h"
#include "widgets/auStaticText.h"
#include "../images/MusicalInstruments.h"
#include "../images/AudacityLogo.xpm"
#include "MenuCreator.h"
#include <numeric>
#include "CommandContext.h"
Include dependency graph for MixerBoard.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{MixerBoard.cpp}
 

Macros

#define AudacityMixerBoardTitle   XO("Audacity Mixer%s")
 
#define MIXER_BOARD_MIN_HEIGHT   460
 
#define MIXER_BOARD_MIN_WIDTH   kTripleInset + kMixerTrackClusterWidth*2 + kTripleInset
 

Enumerations

enum  {
  ID_BITMAPBUTTON_MUSICAL_INSTRUMENT = 13000 , ID_SLIDER_PAN , ID_SLIDER_GAIN , ID_SLIDER_VELOCITY ,
  ID_TOGGLEBUTTON_MUTE , ID_TOGGLEBUTTON_SOLO
}
 

Functions

size_t anonymous_namespace{MixerBoard.cpp}::GetNumSamplesInView (const ChannelSampleView &view)
 
void anonymous_namespace{MixerBoard.cpp}::FillBufferWithSampleView (float *buffer, const ChannelSampleView &view)
 
const ReservedCommandFlaganonymous_namespace{MixerBoard.cpp}::PlayableTracksExistFlag ()
 
void anonymous_namespace{MixerBoard.cpp}::OnMixerBoard (const CommandContext &context)
 

Variables

const int kInset = 4
 
const int kDoubleInset = (2 * kInset)
 
const int kTripleInset = (3 * kInset)
 
const int kQuadrupleInset = (4 * kInset)
 
const int TRACK_NAME_HEIGHT = 18
 
const int MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH = 48
 
const int MUTE_SOLO_HEIGHT = 19
 
const int PAN_HEIGHT = 24
 
const int kLeftSideStackWidth = MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH - kDoubleInset
 
const int kRightSideStackWidth = MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH + kDoubleInset
 
const int kMixerTrackClusterWidth = kLeftSideStackWidth + kRightSideStackWidth + kQuadrupleInset
 
const wxSize kDefaultSize
 
AttachedWindows::RegisteredFactory anonymous_namespace{MixerBoard.cpp}::sMixerBoardKey
 
AttachedItem anonymous_namespace{MixerBoard.cpp}::sAttachment
 

Macro Definition Documentation

◆ AudacityMixerBoardTitle

#define AudacityMixerBoardTitle   XO("Audacity Mixer%s")

Definition at line 72 of file MixerBoard.cpp.

◆ MIXER_BOARD_MIN_HEIGHT

#define MIXER_BOARD_MIN_HEIGHT   460

Definition at line 843 of file MixerBoard.cpp.

◆ MIXER_BOARD_MIN_WIDTH

#define MIXER_BOARD_MIN_WIDTH   kTripleInset + kMixerTrackClusterWidth*2 + kTripleInset

Definition at line 846 of file MixerBoard.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_BITMAPBUTTON_MUSICAL_INSTRUMENT 
ID_SLIDER_PAN 
ID_SLIDER_GAIN 
ID_SLIDER_VELOCITY 
ID_TOGGLEBUTTON_MUTE 
ID_TOGGLEBUTTON_SOLO 

Definition at line 151 of file MixerBoard.cpp.

151 {
158};
@ ID_BITMAPBUTTON_MUSICAL_INSTRUMENT
Definition: MixerBoard.cpp:152
@ ID_SLIDER_PAN
Definition: MixerBoard.cpp:153
@ ID_SLIDER_VELOCITY
Definition: MixerBoard.cpp:155
@ ID_SLIDER_GAIN
Definition: MixerBoard.cpp:154
@ ID_TOGGLEBUTTON_MUTE
Definition: MixerBoard.cpp:156
@ ID_TOGGLEBUTTON_SOLO
Definition: MixerBoard.cpp:157

Variable Documentation

◆ kDefaultSize

const wxSize kDefaultSize
Initial value:
=
#define MIXER_BOARD_MIN_WIDTH
Definition: MixerBoard.cpp:846
#define MIXER_BOARD_MIN_HEIGHT
Definition: MixerBoard.cpp:843

Definition at line 1390 of file MixerBoard.cpp.

◆ kDoubleInset

const int kDoubleInset = (2 * kInset)

◆ kInset

const int kInset = 4

◆ kLeftSideStackWidth

const int kLeftSideStackWidth = MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH - kDoubleInset

Definition at line 147 of file MixerBoard.cpp.

◆ kMixerTrackClusterWidth

const int kMixerTrackClusterWidth = kLeftSideStackWidth + kRightSideStackWidth + kQuadrupleInset

◆ kQuadrupleInset

const int kQuadrupleInset = (4 * kInset)

Definition at line 140 of file MixerBoard.cpp.

Referenced by MixerTrackCluster::HandleResize().

◆ kRightSideStackWidth

const int kRightSideStackWidth = MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH + kDoubleInset

Definition at line 148 of file MixerBoard.cpp.

Referenced by MixerBoard::CreateMuteSoloImages(), and MixerBoard::MixerBoard().

◆ kTripleInset

const int kTripleInset = (3 * kInset)

Definition at line 139 of file MixerBoard.cpp.

◆ MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH

const int MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH = 48

◆ MUTE_SOLO_HEIGHT

const int MUTE_SOLO_HEIGHT = 19

◆ PAN_HEIGHT

const int PAN_HEIGHT = 24

Definition at line 145 of file MixerBoard.cpp.

Referenced by MixerTrackCluster::HandleResize().

◆ TRACK_NAME_HEIGHT

const int TRACK_NAME_HEIGHT = 18

Definition at line 142 of file MixerBoard.cpp.

Referenced by MixerTrackCluster::HandleResize().