16#include <wx/stattext.h>
42 const wxPoint &position, const wxSize&
size,
long style )
44 , mMixerSpec(mixerSpec)
50 const wxString sTrackName = (t->GetName()).Left(20);
53 mTrackNames.push_back(sTrackName);
56 mTrackNames.push_back(
XO(
"%s - L").Format(sTrackName).Translation());
58 mTrackNames.push_back(
XO(
"%s - R").Format(sTrackName).Translation());
62 auto label =
XO(
"Output Channels: %2d")
63 .Format( mMixerSpec->GetNumChannels() );
71 mTrackNames, wxDefaultPosition, wxSize(400, -1));
73 .Name(
XO(
"Mixer Panel"))
74 .Position(wxEXPAND | wxALL)
75 .AddWindow(mixerPanel);
77 S.StartHorizontalLay(wxALIGN_CENTER | wxALL, 0);
79 mChannelsText =
S.AddVariableText(
81 false, wxALIGN_LEFT | wxALL );
83 if(mMixerSpec->GetMaxNumChannels() > 1)
89 .Style(wxSL_HORIZONTAL)
90 .Position(wxEXPAND | wxALL)
92 mMixerSpec->GetNumChannels(),
93 mMixerSpec->GetMaxNumChannels(), 1 );
102 GetSizer()->Fit(
this );
103 GetSizer()->SetSizeHints(
this );
105 SetSizeHints( 640, 480, 20000, 20000 );
115 pnl->Refresh(
false );
124 pnl->Refresh(
false );
128 channels->SetName(
label );
138 EndModal( wxID_CANCEL );
EVT_BUTTON(wxID_NO, DependencyDialog::OnNo) EVT_BUTTON(wxID_YES
Dialog for advanced mixing.
void OnOk(wxCommandEvent &event)
void OnCancel(wxCommandEvent &event)
void OnSize(wxSizeEvent &event)
wxStaticText * mChannelsText
void OnMixerPanelHelp(wxCommandEvent &event)
MixerOptions::Downmix * mMixerSpec
void OnSlider(wxCommandEvent &event)
Panel that displays mixing for advanced mixing option.
static void ShowHelp(wxWindow *parent, const FilePath &localFileName, const URLString &remoteURL, bool bModal=false, bool alwaysDefaultBrowser=false)
bool SetNumChannels(unsigned numChannels)
unsigned GetNumChannels() const
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
bool IsMono(const Channel &channel)
Whether the channel is mono.
Range between two TrackIters, usable in range-for statements, and with Visit member functions.