1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

Device sink engine: fixed adding source channels while it runs

This commit is contained in:
f4exb 2018-01-02 11:00:00 +01:00
parent fdce9958e5
commit 23e5ef76d4
2 changed files with 13 additions and 3 deletions

View File

@ -481,7 +481,10 @@ void DSPDeviceSinkEngine::handleSynchronousMessages()
m_basebandSampleSources.push_back(source); m_basebandSampleSources.push_back(source);
checkNumberOfBasebandSources(); checkNumberOfBasebandSources();
if (m_state == StRunning) { if (m_state == StRunning)
{
DSPSignalNotification notif(m_sampleRate, m_centerFrequency);
source->handleMessage(notif);
source->start(); source->start();
} }
} }
@ -502,7 +505,10 @@ void DSPDeviceSinkEngine::handleSynchronousMessages()
m_threadedBasebandSampleSources.push_back(threadedSource); m_threadedBasebandSampleSources.push_back(threadedSource);
checkNumberOfBasebandSources(); checkNumberOfBasebandSources();
if (m_state == StRunning) { if (m_state == StRunning)
{
DSPSignalNotification notif(m_sampleRate, m_centerFrequency);
threadedSource->handleSourceMessage(notif);
threadedSource->start(); threadedSource->start();
} }
} }

View File

@ -174,7 +174,11 @@ void UpChannelizer::applyConfiguration()
{ {
if (m_outputSampleRate == 0) if (m_outputSampleRate == 0)
{ {
qDebug() << "UpChannelizer::applyConfiguration: m_outputSampleRate=0 aborting"; qDebug() << "UpChannelizer::applyConfiguration: aborting (out=0):"
<< " out =" << m_outputSampleRate
<< ", req =" << m_requestedInputSampleRate
<< ", in =" << m_currentInputSampleRate
<< ", fc =" << m_currentCenterFrequency;
return; return;
} }