Fixed: When a disconnected audio device was selected in the Configuration Editor, the analysis panel was inoperable.
This commit is contained in:
1 parent
a24eaa0cd9
commit
6bfc9d4007
2 files changed
+15
-1
No files matched your search
@@ -149,8 +149,15 @@ void AnalysisThread::run()
|
|||||||
channelCount++;
|
channelCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (channelCount == 0)
|
||||||
|
{
|
||||||
|
channelCount = 8;
|
||||||
|
channelMask = KSAUDIO_SPEAKER_7POINT1_SURROUND;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned sampleRate = device->getSampleRate();
|
unsigned sampleRate = device->getSampleRate();
|
||||||
|
if (sampleRate == 0)
|
||||||
|
sampleRate = 48000;
|
||||||
|
|
||||||
qint64 startTime = timer.nsecsElapsed();
|
qint64 startTime = timer.nsecsElapsed();
|
||||||
|
|
||||||
|
|||||||
@@ -424,8 +424,10 @@ void MainWindow::deviceSelected(int index)
|
|||||||
|
|
||||||
if (selectedInfo != NULL)
|
if (selectedInfo != NULL)
|
||||||
channelConfigurationComboBox->addItem(tr("From device") + " (" + selectedInfo->name + ")", 0);
|
channelConfigurationComboBox->addItem(tr("From device") + " (" + selectedInfo->name + ")", 0);
|
||||||
else
|
else if (apoInfo->getChannelCount() != 0)
|
||||||
channelConfigurationComboBox->addItem(tr("From device") + " (" + apoInfo->getChannelCount() + " channels)", 0);
|
channelConfigurationComboBox->addItem(tr("From device") + " (" + apoInfo->getChannelCount() + " channels)", 0);
|
||||||
|
else
|
||||||
|
channelConfigurationComboBox->addItem(tr("From device") + " (? channels)", 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -466,6 +468,11 @@ void MainWindow::channelConfigurationSelected(int index)
|
|||||||
channelCount++;
|
channelCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (channelCount == 0)
|
||||||
|
{
|
||||||
|
channelCount = 8;
|
||||||
|
channelMask = KSAUDIO_SPEAKER_7POINT1_SURROUND;
|
||||||
|
}
|
||||||
|
|
||||||
vector<wstring> channelNames = ChannelHelper::getChannelNames(channelCount, channelMask);
|
vector<wstring> channelNames = ChannelHelper::getChannelNames(channelCount, channelMask);
|
||||||
for (wstring channelName : channelNames)
|
for (wstring channelName : channelNames)
|
||||||
|
|||||||
Reference in new issue
Block a user