1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -04: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
+8 -2
View File
@@ -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();
}
}