Fix spectrum peaks as well.

audioplugins
Phil Taylor 2021-03-03 10:36:43 +00:00
rodzic 32d66d0689
commit 2af85f31b1
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1970,11 +1970,11 @@ void wfmain::receiveSpectrumData(QByteArray spectrum, double startFreq, double e
y[i] = (unsigned char)spectrum.at(i);
if(drawPeaks)
{
if((unsigned char)spectrum.at(i) > spectrumPeaks.at(i))
if((unsigned char)spectrum.at(i) > (unsigned char)spectrumPeaks.at(i))
{
spectrumPeaks[i] = spectrum.at(i);
}
y2[i] = spectrumPeaks.at(i);
y2[i] = (unsigned char)spectrumPeaks.at(i);
}
}