1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-17 16:11:11 +02:00

bug 11: fix bad index typo. may fix bug 11 issues on win 7.

This commit is contained in:
mchinen
2011-02-24 17:59:05 +00:00
parent 85b0e44e2e
commit 4c766b2714
3 changed files with 83 additions and 83 deletions

View File

@@ -286,7 +286,7 @@ void DeviceToolBar::UpdatePrefs()
if (outMaps[i].hostString == hostName && if (outMaps[i].hostString == hostName &&
MakeDeviceSourceString(&outMaps[i]) == mOutput->GetString(0)) { MakeDeviceSourceString(&outMaps[i]) == mOutput->GetString(0)) {
// use the default. It should exist but check just in case, falling back on the 0 index. // use the default. It should exist but check just in case, falling back on the 0 index.
DeviceSourceMap *defaultMap = DeviceManager::Instance()->GetDefaultOutputDevice(inMaps[i].hostIndex); DeviceSourceMap *defaultMap = DeviceManager::Instance()->GetDefaultOutputDevice(outMaps[i].hostIndex);
if (defaultMap) { if (defaultMap) {
mOutput->SetStringSelection(MakeDeviceSourceString(defaultMap)); mOutput->SetStringSelection(MakeDeviceSourceString(defaultMap));
SetDevices(NULL, defaultMap); SetDevices(NULL, defaultMap);