1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-19 17:40:51 +02:00

Use the initial default of stereo instead of mono for recording channels

This commit is contained in:
mchinen 2011-06-01 13:09:00 +00:00
parent 1f7a46a620
commit a0c1ac4cd3

View File

@ -594,7 +594,7 @@ void DeviceToolBar::FillInputChannels()
wxString host = gPrefs->Read(wxT("/AudioIO/Host"), wxT(""));
wxString device = gPrefs->Read(wxT("/AudioIO/RecordingDevice"), wxT(""));
wxString source = gPrefs->Read(wxT("/AudioIO/RecordingSource"), wxT(""));
long oldChannels = 1, newChannels;
long oldChannels = 2, newChannels;
gPrefs->Read(wxT("/AudioIO/RecordChannels"), &oldChannels);
int index = -1;
@ -621,7 +621,7 @@ void DeviceToolBar::FillInputChannels()
mInputChannels->Append(name);
}
newChannels = inMaps[i].numChannels;
if (oldChannels < newChannels && oldChannels >= 1)
if (oldChannels <= newChannels && oldChannels >= 1)
newChannels = oldChannels;
if (newChannels >= 1)
mInputChannels->SetSelection(newChannels - 1);