MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / setInputSampleRate

Function setInputSampleRate

core/src/core.cpp:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 GLFWwindow* window;
71
72 void setInputSampleRate(double samplerate) {
73 sigpath::signalPath.sourceSampleRate = samplerate;
74 double effectiveSr = samplerate / ((double)(1 << sigpath::signalPath.decimation));
75 // NOTE: Zoom controls won't work
76 spdlog::info("New DSP samplerate: {0} (source samplerate is {1})", effectiveSr, samplerate);
77 gui::waterfall.setBandwidth(effectiveSr);
78 gui::waterfall.setViewOffset(0);
79 gui::waterfall.setViewBandwidth(effectiveSr);
80 sigpath::signalPath.setSampleRate(effectiveSr);
81 gui::mainWindow.setViewBandwidthSlider(1.0);
82 }
83};
84
85bool maximized = false;

Callers 15

menuSelectedMethod · 0.85
menuHandlerMethod · 0.85
menuSelectedMethod · 0.85
menuHandlerMethod · 0.85
menuSelectedMethod · 0.85
menuHandlerMethod · 0.85
menuSelectedMethod · 0.85
menuHandlerMethod · 0.85
menuSelectedMethod · 0.85
menuHandlerMethod · 0.85
menuSelectedMethod · 0.85
menuHandlerMethod · 0.85

Calls 6

setViewOffsetMethod · 0.80
setViewBandwidthMethod · 0.80
infoFunction · 0.50
setBandwidthMethod · 0.45
setSampleRateMethod · 0.45

Tested by

no test coverage detected