Device sink engine: fixed adding source channels while it runs

pull/127/head
f4exb 2018-01-02 11:00:00 +01:00
rodzic fdce9958e5
commit 23e5ef76d4
2 zmienionych plików z 13 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

@ -174,7 +174,11 @@ void UpChannelizer::applyConfiguration()
{
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;
}