Fix Qt5 compile (hopefully)

qcpfix
Phil Taylor 2023-02-17 14:01:09 +00:00
rodzic 9eb89a9cb1
commit 3ce35500b9
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -180,11 +180,10 @@ QByteArray cwSidetone::generateData(qint64 len, qint64 freq)
{
QByteArray data;
const int channels = format.channelCount();
#if (QT_VERSION < QT_VERSION_CHECK(6,0,0))
const int channels = format.channels();
const int channelBytes = format.sampleSize() / 8;
#else
const int channels = format.channelCount();
const int channelBytes = format.bytesPerSample();
#endif