Merge pull request #1667 from hb9fxq/master

aaroniartsainput: Starting with build 12830 the stream header will contain the field 'sampleFrequency' for accurate bw calculation
pull/1668/head
Edouard Griffiths 2023-04-19 18:22:11 +02:00 zatwierdzone przez GitHub
commit fc923ebbed
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -311,7 +311,7 @@ void AaroniaRTSAInputWorker::onReadyRead()
// qDebug() << jdoc.toJson();
quint64 endFreq = jdoc["endFrequency"].toDouble();
quint64 startFreq = jdoc["startFrequency"].toDouble();
int bw = endFreq - startFreq;
int bw = jdoc["sampleFrequency"].toInt();
quint64 midFreq = (endFreq + startFreq) / 2;
if ((bw != m_sampleRate) || (midFreq != m_centerFrequency))