Audacity 3.2.0
|
A PrefsPanel used to select recording and playback devices and other settings. More...
#include <DevicePrefs.h>
Public Member Functions | |
DevicePrefs (wxWindow *parent, wxWindowID winid, AudacityProject *project) | |
virtual | ~DevicePrefs () |
ComponentInterfaceSymbol | GetSymbol () const override |
TranslatableString | GetDescription () const override |
bool | Commit () override |
ManualPageID | HelpPageName () override |
If not empty string, the Help button is added below the panel. More... | |
void | PopulateOrExchange (ShuttleGui &S) override |
Public Member Functions inherited from PrefsPanel | |
PrefsPanel (wxWindow *parent, wxWindowID winid, const TranslatableString &title) | |
virtual | ~PrefsPanel () |
virtual void | Preview () |
virtual bool | Commit ()=0 |
virtual PluginPath | GetPath () const override |
virtual VendorSymbol | GetVendor () const override |
virtual wxString | GetVersion () const override |
virtual bool | ShowsPreviewButton () |
virtual void | PopulateOrExchange (ShuttleGui &WXUNUSED(S)) |
virtual ManualPageID | HelpPageName () |
If not empty string, the Help button is added below the panel. More... | |
virtual void | Cancel () |
Public Member Functions inherited from wxPanelWrapper | |
wxPanelWrapper () | |
wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) | |
bool | Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) |
void | SetLabel (const TranslatableString &label) |
void | SetName (const TranslatableString &name) |
void | SetToolTip (const TranslatableString &toolTip) |
void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxPanel > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Member Functions | |
void | Populate () |
void | GetNamesAndLabels () |
void | OnHost (wxCommandEvent &e) |
void | OnDevice (wxCommandEvent &e) |
void | OnDefaultSampleRateChoice (wxCommandEvent &e) |
void | OnProjectSampleRateChoice (wxCommandEvent &e) |
Private Attributes | |
AudacityProject * | mProject |
TranslatableStrings | mHostNames |
wxArrayStringEx | mHostLabels |
wxString | mPlayDevice |
wxString | mRecordDevice |
wxString | mRecordSource |
long | mRecordChannels |
wxChoice * | mHost |
wxChoice * | mPlay |
wxChoice * | mRecord |
wxChoice * | mChannels |
wxChoice * | mProjectSampleRates { nullptr } |
wxTextCtrl * | mOtherProjectSampleRate { nullptr } |
int | mProjectSampleRateIndex |
int | mOtherProjectSampleRateValue |
wxChoice * | mDefaultSampleRates |
wxTextCtrl * | mOtherDefaultSampleRate |
int | mOtherDefaultSampleRateValue |
TranslatableStrings | mSampleRateNames |
std::vector< int > | mSampleRateValues |
Additional Inherited Members | |
Public Types inherited from PrefsPanel | |
using | Factories = std::vector< PrefsPanel::PrefsNode > |
using | Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > |
Static Public Member Functions inherited from PrefsPanel | |
static Factories & | DefaultFactories () |
A PrefsPanel used to select recording and playback devices and other settings.
Presents interface for user to select the recording device and playback device, from the list of choices that PortAudio makes available.
Also lets user decide how many channels to record.
Definition at line 25 of file DevicePrefs.h.
DevicePrefs::DevicePrefs | ( | wxWindow * | parent, |
wxWindowID | winid, | ||
AudacityProject * | project | ||
) |
Definition at line 69 of file DevicePrefs.cpp.
|
virtual |
Definition at line 76 of file DevicePrefs.cpp.
|
overridevirtual |
Implements PrefsPanel.
Definition at line 515 of file DevicePrefs.cpp.
References AudioIOLatencyCorrection, AudioIOLatencyDuration, AudioIOPlaybackDevice, AudioIORecordChannels, AudioIORecordingDevice, AudioIORecordingSource, AudioIORecordingSourceIndex, QualitySettings::DefaultSampleRate, DeviceSourceMap::deviceString, eIsSavingToPrefs, audacity::BasicSettings::Flush(), ProjectRate::Get(), gPrefs, Setting< T >::Invalidate(), mChannels, mOtherDefaultSampleRate, mOtherDefaultSampleRateValue, mOtherProjectSampleRate, mOtherProjectSampleRateValue, mPlay, mProject, mProjectSampleRates, mRecord, mSampleRateValues, PopulateOrExchange(), Setting< T >::Reset(), S, DeviceSourceMap::sourceIndex, DeviceSourceMap::sourceString, DeviceSourceMap::totalSources, and Setting< T >::Write().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 86 of file DevicePrefs.cpp.
References XO().
|
private |
Definition at line 138 of file DevicePrefs.cpp.
References make_iterator_range(), mHostLabels, mHostNames, mSampleRateNames, mSampleRateValues, name, AudioIOBase::NumStandardRates, AudioIOBase::StandardRates, Verbatim(), and XO().
Referenced by Populate().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 81 of file DevicePrefs.cpp.
References DEVICE_PREFS_PLUGIN_SYMBOL.
|
overridevirtual |
If not empty string, the Help button is added below the panel.
Default returns empty string.
Reimplemented from PrefsPanel.
Definition at line 91 of file DevicePrefs.cpp.
|
private |
Definition at line 499 of file DevicePrefs.cpp.
References mDefaultSampleRates, and mOtherDefaultSampleRate.
Referenced by Populate().
|
private |
Definition at line 435 of file DevicePrefs.cpp.
References _, mChannels, mRecord, mRecordChannels, name, DeviceSourceMap::numChannels, ShuttleGui::SetMinSize(), and wxT().
Referenced by OnHost().
|
private |
Definition at line 323 of file DevicePrefs.cpp.
References _, DeviceManager::GetDefaultInputDevice(), DeviceManager::GetDefaultOutputDevice(), DeviceManager::GetInputDeviceMaps(), DeviceManager::GetOutputDeviceMaps(), DeviceManager::Instance(), MakeDeviceSourceString(), mHost, mHostLabels, mHostNames, mPlay, mPlayDevice, mRecord, mRecordDevice, mRecordSource, name, OnDevice(), ShuttleGui::SetMinSize(), and wxT().
Referenced by Populate().
|
private |
Definition at line 505 of file DevicePrefs.cpp.
References mOtherProjectSampleRate, and mProjectSampleRates.
Referenced by Populate().
|
private |
Definition at line 96 of file DevicePrefs.cpp.
References AudioIOPlaybackDevice, AudioIORecordChannels, AudioIORecordingDevice, AudioIORecordingSource, QualitySettings::DefaultSampleRate, eIsCreatingFromPrefs, ProjectRate::Get(), GetNamesAndLabels(), ProjectRate::GetRate(), mOtherDefaultSampleRateValue, mOtherProjectSampleRateValue, mPlayDevice, mProject, mProjectSampleRateIndex, mRecordChannels, mRecordDevice, mRecordSource, mSampleRateNames, mSampleRateValues, OnDefaultSampleRateChoice(), OnHost(), OnProjectSampleRateChoice(), PopulateOrExchange(), Setting< T >::Read(), and S.
|
override |
Definition at line 184 of file DevicePrefs.cpp.
References AudioIOHost, AudioIOLatencyCorrection, AudioIOLatencyDuration, ThemeBase::Bitmap(), ByColumns, ChannelsID, QualitySettings::DefaultSampleRate, DefaultSampleRateChoice, HostID, mChannels, mDefaultSampleRates, mHost, mHostLabels, mHostNames, mOtherDefaultSampleRate, mOtherDefaultSampleRateValue, mOtherProjectSampleRate, mOtherProjectSampleRateValue, mPlay, mProject, mProjectSampleRateIndex, mProjectSampleRates, mRecord, mSampleRateNames, mSampleRateValues, PlayID, ProjectSampleRateChoice, RecordID, S, QualitySettings::SampleFormatSetting, theTheme, Verbatim(), XC, XO(), and XXO().
Referenced by Commit(), and Populate().
|
private |
Definition at line 60 of file DevicePrefs.h.
Referenced by Commit(), OnDevice(), and PopulateOrExchange().
|
private |
Definition at line 68 of file DevicePrefs.h.
Referenced by OnDefaultSampleRateChoice(), and PopulateOrExchange().
|
private |
Definition at line 57 of file DevicePrefs.h.
Referenced by OnHost(), and PopulateOrExchange().
|
private |
Definition at line 50 of file DevicePrefs.h.
Referenced by GetNamesAndLabels(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 49 of file DevicePrefs.h.
Referenced by GetNamesAndLabels(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 69 of file DevicePrefs.h.
Referenced by Commit(), OnDefaultSampleRateChoice(), and PopulateOrExchange().
|
private |
Definition at line 70 of file DevicePrefs.h.
Referenced by Commit(), Populate(), and PopulateOrExchange().
|
private |
Definition at line 63 of file DevicePrefs.h.
Referenced by Commit(), OnProjectSampleRateChoice(), and PopulateOrExchange().
|
private |
Definition at line 66 of file DevicePrefs.h.
Referenced by Commit(), Populate(), and PopulateOrExchange().
|
private |
Definition at line 58 of file DevicePrefs.h.
Referenced by Commit(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 52 of file DevicePrefs.h.
Referenced by OnHost(), and Populate().
|
private |
Definition at line 47 of file DevicePrefs.h.
Referenced by Commit(), Populate(), and PopulateOrExchange().
|
private |
Definition at line 65 of file DevicePrefs.h.
Referenced by Populate(), and PopulateOrExchange().
|
private |
Definition at line 62 of file DevicePrefs.h.
Referenced by Commit(), OnProjectSampleRateChoice(), and PopulateOrExchange().
|
private |
Definition at line 59 of file DevicePrefs.h.
Referenced by Commit(), OnDevice(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 55 of file DevicePrefs.h.
Referenced by OnDevice(), and Populate().
|
private |
Definition at line 53 of file DevicePrefs.h.
Referenced by OnHost(), and Populate().
|
private |
Definition at line 54 of file DevicePrefs.h.
Referenced by OnHost(), and Populate().
|
private |
Definition at line 72 of file DevicePrefs.h.
Referenced by GetNamesAndLabels(), Populate(), and PopulateOrExchange().
|
private |
Definition at line 73 of file DevicePrefs.h.
Referenced by Commit(), GetNamesAndLabels(), Populate(), and PopulateOrExchange().