1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-02-03 09:44:01 -05:00

Merge pull request #2138 from mxi-box/bugfix

Bugfix: ADS-B demodulate & WFM modulate
This commit is contained in:
Edouard Griffiths 2024-05-30 16:54:09 +02:00 committed by GitHub
commit 4cf54cb9a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -262,7 +262,7 @@ void ADSBDemodSinkWorker::run()
if (m_sink->getMessageQueueToGUI() && ((df == 4) || (df == 5) || (df == 20) || (df == 21))) if (m_sink->getMessageQueueToGUI() && ((df == 4) || (df == 5) || (df == 20) || (df == 21)))
{ {
ADSBDemodReport::MsgReportADSB *msg = ADSBDemodReport::MsgReportADSB::create( ADSBDemodReport::MsgReportADSB *msg = ADSBDemodReport::MsgReportADSB::create(
QByteArray((char*)data, sizeof(data)), QByteArray((char*)data, bytes),
preambleCorrelation * m_correlationScale, preambleCorrelation * m_correlationScale,
preambleCorrelationOnes / samplesPerChip, preambleCorrelationOnes / samplesPerChip,
rxDateTime(firstIdx, readBuffer), rxDateTime(firstIdx, readBuffer),
@ -273,7 +273,7 @@ void ADSBDemodSinkWorker::run()
if (m_sink->getMessageQueueToWorker()) if (m_sink->getMessageQueueToWorker())
{ {
ADSBDemodReport::MsgReportADSB *msg = ADSBDemodReport::MsgReportADSB::create( ADSBDemodReport::MsgReportADSB *msg = ADSBDemodReport::MsgReportADSB::create(
QByteArray((char*)data, sizeof(data)), QByteArray((char*)data, bytes),
preambleCorrelation * m_correlationScale, preambleCorrelation * m_correlationScale,
preambleCorrelationOnes / samplesPerChip, preambleCorrelationOnes / samplesPerChip,
rxDateTime(firstIdx, readBuffer), rxDateTime(firstIdx, readBuffer),

View File

@ -48,6 +48,7 @@ WFMModBaseband::WFMModBaseband()
WFMModBaseband::~WFMModBaseband() WFMModBaseband::~WFMModBaseband()
{ {
DSPEngine::instance()->getAudioDeviceManager()->removeAudioSink(m_source.getFeedbackAudioFifo());
DSPEngine::instance()->getAudioDeviceManager()->removeAudioSource(m_source.getAudioFifo()); DSPEngine::instance()->getAudioDeviceManager()->removeAudioSource(m_source.getAudioFifo());
delete m_channelizer; delete m_channelizer;
} }