MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / pushVisualData

Method pushVisualData

src/sdr/SDRPostThread.cpp:233–245  ·  view source on GitHub ↗

Push visual data; i.e. Main Waterfall (all frames) and Spectrum (active frame)

Source from the content-addressed store, hash-verified

231
232// Push visual data; i.e. Main Waterfall (all frames) and Spectrum (active frame)
233void SDRPostThread::pushVisualData(const DemodulatorThreadIQDataPtr& iqDataOut) {
234
235 if (iqDataOutQueue != nullptr) {
236
237 //non-blocking push here, we can afford to loose some samples for a ever-changing visual display.
238 iqDataOutQueue->try_push(iqDataOut);
239
240 if (iqVisualQueue != nullptr) {
241 //non-blocking push here, we can afford to loose some samples for a ever-changing visual display.
242 iqVisualQueue->try_push(iqDataOut);
243 }
244 }
245}
246
247// Run without any processing; each demod gets the full SDR bandwidth to handle on it's own
248void SDRPostThread::runSingleCH(SDRThreadIQData *data_in) {

Callers

nothing calls this directly

Calls 1

try_pushMethod · 0.80

Tested by

no test coverage detected