mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 15:51:47 -05:00
DemodAnalyzer: Ensure sample rate is set in worker. Fixes #2309.
This commit is contained in:
parent
585841e787
commit
c4733a3645
@ -131,6 +131,7 @@ void DemodAnalyzer::start()
|
|||||||
DemodAnalyzerWorker::MsgConfigureDemodAnalyzerWorker *msg
|
DemodAnalyzerWorker::MsgConfigureDemodAnalyzerWorker *msg
|
||||||
= DemodAnalyzerWorker::MsgConfigureDemodAnalyzerWorker::create(m_settings, QList<QString>(), true);
|
= DemodAnalyzerWorker::MsgConfigureDemodAnalyzerWorker::create(m_settings, QList<QString>(), true);
|
||||||
m_worker->getInputMessageQueue()->push(msg);
|
m_worker->getInputMessageQueue()->push(msg);
|
||||||
|
m_worker->applySampleRate(m_sampleRate);
|
||||||
|
|
||||||
if (m_dataPipe)
|
if (m_dataPipe)
|
||||||
{
|
{
|
||||||
|
@ -29,6 +29,7 @@ MESSAGE_CLASS_DEFINITION(DemodAnalyzerWorker::MsgConnectFifo, Message)
|
|||||||
|
|
||||||
DemodAnalyzerWorker::DemodAnalyzerWorker() :
|
DemodAnalyzerWorker::DemodAnalyzerWorker() :
|
||||||
m_dataFifo(nullptr),
|
m_dataFifo(nullptr),
|
||||||
|
m_sinkSampleRate(0),
|
||||||
m_msgQueueToFeature(nullptr),
|
m_msgQueueToFeature(nullptr),
|
||||||
m_sampleBufferSize(0),
|
m_sampleBufferSize(0),
|
||||||
m_wavFileRecord(nullptr),
|
m_wavFileRecord(nullptr),
|
||||||
|
Loading…
Reference in New Issue
Block a user