mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
re-add and update device preferences to match new device model.
also restores portaudio device defaults functionality when the device can't be found.
This commit is contained in:
@@ -38,22 +38,12 @@ class DevicePrefs:public PrefsPanel
|
||||
void OnHost(wxCommandEvent & e);
|
||||
void OnDevice(wxCommandEvent & e);
|
||||
|
||||
/* @return The default playback device name for the selected HostAPI
|
||||
*
|
||||
* Created so we can set a default that respects the user's choice of API,
|
||||
* unlike Pa_GetDefaultOutputDevice() which always returns the default
|
||||
* device in the default API.
|
||||
* @param index Which HostAPI in the lists mHostNames / mHostIndexes /
|
||||
* mHostLabels the user has selected.
|
||||
*/
|
||||
wxString GetDefaultPlayDevice(int index);
|
||||
wxString GetDefaultRecordDevice(int index);
|
||||
|
||||
wxArrayString mHostNames;
|
||||
wxArrayString mHostLabels;
|
||||
|
||||
wxString mPlayDevice;
|
||||
wxString mRecordDevice;
|
||||
wxString mRecordSource;
|
||||
long mRecordChannels;
|
||||
|
||||
wxChoice *mHost;
|
||||
|
||||
Reference in New Issue
Block a user