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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user