mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
Device source engine: initialize sample rate and center frequency in the sink when adding a threaded sample sink
This commit is contained in:
parent
4961594f50
commit
f719ced17f
@ -570,6 +570,10 @@ void DSPDeviceSourceEngine::handleSynchronousMessages()
|
||||
{
|
||||
ThreadedBasebandSampleSink *threadedSink = ((DSPAddThreadedSampleSink*) message)->getThreadedSampleSink();
|
||||
m_threadedBasebandSampleSinks.push_back(threadedSink);
|
||||
// initialize sample rate and center frequency in the sink:
|
||||
DSPSignalNotification msg(m_sampleRate, m_centerFrequency);
|
||||
threadedSink->handleSinkMessage(msg);
|
||||
// start the sink:
|
||||
threadedSink->start();
|
||||
}
|
||||
else if (DSPRemoveThreadedSampleSink::match(*message))
|
||||
|
Loading…
Reference in New Issue
Block a user