Skip to content

Commit

Permalink
DemodAnalyzer: Ensure sample rate is set in worker. Fixes #2309.
Browse files Browse the repository at this point in the history
  • Loading branch information
srcejon committed Nov 12, 2024
1 parent 585841e commit c4733a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/feature/demodanalyzer/demodanalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ void DemodAnalyzer::start()
DemodAnalyzerWorker::MsgConfigureDemodAnalyzerWorker *msg
= DemodAnalyzerWorker::MsgConfigureDemodAnalyzerWorker::create(m_settings, QList<QString>(), true);
m_worker->getInputMessageQueue()->push(msg);
m_worker->applySampleRate(m_sampleRate);

if (m_dataPipe)
{
Expand Down
1 change: 1 addition & 0 deletions plugins/feature/demodanalyzer/demodanalyzerworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ MESSAGE_CLASS_DEFINITION(DemodAnalyzerWorker::MsgConnectFifo, Message)

DemodAnalyzerWorker::DemodAnalyzerWorker() :
m_dataFifo(nullptr),
m_sinkSampleRate(0),
m_msgQueueToFeature(nullptr),
m_sampleBufferSize(0),
m_wavFileRecord(nullptr),
Expand Down

0 comments on commit c4733a3

Please sign in to comment.