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

Method getOptimalElementCount

src/sdr/SoapySDRThread.cpp:668–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668int SDRThread::getOptimalElementCount(long long sampleRate_in, int fps) {
669 int elemCount = (int)floor((double)sampleRate_in / (double)fps);
670 int nch = numChannels.load();
671 elemCount = int(ceil((double)elemCount/(double)nch))*nch;
672// std::cout << "Calculated optimal " << numChannels.load() << " channel element count of " << elemCount << std::endl;
673 return elemCount;
674}
675
676int SDRThread::getOptimalChannelCount(long long sampleRate_in) {
677 if (sampleRate_in <= CHANNELIZER_RATE_MAX) {

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected