Fixed: When a disconnected audio device was selected in the Configuration Editor, the analysis panel was inoperable.

This commit is contained in:
jthedering committed 2017-06-18 09:49:16 +00:00
1 parent a24eaa0cd9
commit 6bfc9d4007
2 files changed
+15 -1

No files matched your search

+7
View File
@@ -149,8 +149,15 @@ void AnalysisThread::run()
channelCount++;
}
}
if (channelCount == 0)
{
channelCount = 8;
channelMask = KSAUDIO_SPEAKER_7POINT1_SURROUND;
}
unsigned sampleRate = device->getSampleRate();
if (sampleRate == 0)
sampleRate = 48000;
qint64 startTime = timer.nsecsElapsed();