audiomonitor: null channel count check

This commit is contained in:
itsmattkc
2022-01-10 09:35:43 -08:00
parent 3731b0a4b7
commit c3a02e3dc2
+4
View File
@@ -80,6 +80,10 @@ void AudioMonitor::Stop()
void AudioMonitor::PushBytes(const QByteArray &d)
{
if (!params_.channel_count()) {
return;
}
QVector<double> v(params_.channel_count(), 0);
BytesToSampleSummary(d, v);