1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 18:15:45 -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:
f4exb 2017-02-14 21:46:35 +01:00
parent 4961594f50
commit f719ced17f

View File

@ -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))