Audacity  2.2.0
DevicePrefs Class Referencefinal

A PrefsPanel used to select recording and playback devices and other settings. More...

#include <DevicePrefs.h>

Inheritance diagram for DevicePrefs:
PrefsPanel wxTabTraversalWrapper< Base >

Public Member Functions

 DevicePrefs (wxWindow *parent)
 
virtual ~DevicePrefs ()
 
bool Commit () override
 
wxString HelpPageName () override
 
- Public Member Functions inherited from PrefsPanel
 PrefsPanel (wxWindow *parent, const wxString &title)
 
virtual ~PrefsPanel ()
 
virtual void Preview ()
 
virtual bool ShowsPreviewButton ()
 
virtual void Cancel ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 
 ~wxTabTraversalWrapper ()
 

Private Member Functions

void Populate ()
 
void PopulateOrExchange (ShuttleGui &S)
 
void GetNamesAndLabels ()
 
void OnHost (wxCommandEvent &e)
 
void OnDevice (wxCommandEvent &e)
 

Private Attributes

wxArrayString mHostNames
 
wxArrayString mHostLabels
 
wxString mPlayDevice
 
wxString mRecordDevice
 
wxString mRecordSource
 
long mRecordChannels
 
wxChoice * mHost
 
wxChoice * mPlay
 
wxChoice * mRecord
 
wxChoice * mChannels
 

Detailed Description

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.

Constructor & Destructor Documentation

DevicePrefs::DevicePrefs ( wxWindow *  parent)
DevicePrefs::~DevicePrefs ( )
virtual

Member Function Documentation

void DevicePrefs::GetNamesAndLabels ( )
private

References mHostLabels, mHostNames, and name.

Referenced by Populate().

wxString DevicePrefs::HelpPageName ( )
overridevirtual

Reimplemented from PrefsPanel.

void DevicePrefs::OnDevice ( wxCommandEvent &  e)
private

Member Data Documentation

wxChoice* DevicePrefs::mChannels
private
wxChoice* DevicePrefs::mHost
private

Referenced by OnHost(), and PopulateOrExchange().

wxArrayString DevicePrefs::mHostLabels
private
wxArrayString DevicePrefs::mHostNames
private
wxChoice* DevicePrefs::mPlay
private

Referenced by Commit(), OnHost(), and PopulateOrExchange().

wxString DevicePrefs::mPlayDevice
private

Referenced by OnHost(), and Populate().

wxChoice* DevicePrefs::mRecord
private
long DevicePrefs::mRecordChannels
private

Referenced by OnDevice(), and Populate().

wxString DevicePrefs::mRecordDevice
private

Referenced by OnHost(), and Populate().

wxString DevicePrefs::mRecordSource
private

Referenced by OnHost(), and Populate().


The documentation for this class was generated from the following files: