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

Method resetAllDemodulators

src/sdr/SDRPostThread.cpp:101–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100
101void SDRPostThread::resetAllDemodulators() {
102 //retrieve the current list of demodulators:
103 auto demodulators = wxGetApp().getDemodMgr().getDemodulators();
104
105 for (const auto& demod : demodulators) {
106
107 demod->setActive(false);
108 demod->getIQInputDataPipe()->flush();
109 }
110
111 doRefresh.store(true);
112}
113
114
115// Update the channel positions and frequencies

Callers

nothing calls this directly

Calls 4

getDemodulatorsMethod · 0.80
flushMethod · 0.80
getIQInputDataPipeMethod · 0.80
setActiveMethod · 0.45

Tested by

no test coverage detected