mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-22 18:55:45 -04:00
aaroniartsainput: Starting with build 12830 the stream header will contain the field 'sampleFrequency' for accurate bw calculation
This commit is contained in:
parent
c09f404d27
commit
5337cf3cf8
@ -311,7 +311,7 @@ void AaroniaRTSAInputWorker::onReadyRead()
|
|||||||
// qDebug() << jdoc.toJson();
|
// qDebug() << jdoc.toJson();
|
||||||
quint64 endFreq = jdoc["endFrequency"].toDouble();
|
quint64 endFreq = jdoc["endFrequency"].toDouble();
|
||||||
quint64 startFreq = jdoc["startFrequency"].toDouble();
|
quint64 startFreq = jdoc["startFrequency"].toDouble();
|
||||||
int bw = endFreq - startFreq;
|
int bw = jdoc["sampleFrequency"].toInt();
|
||||||
quint64 midFreq = (endFreq + startFreq) / 2;
|
quint64 midFreq = (endFreq + startFreq) / 2;
|
||||||
|
|
||||||
if ((bw != m_sampleRate) || (midFreq != m_centerFrequency))
|
if ((bw != m_sampleRate) || (midFreq != m_centerFrequency))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user