| 666 | } |
| 667 | |
| 668 | int 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 | |
| 676 | int SDRThread::getOptimalChannelCount(long long sampleRate_in) { |
| 677 | if (sampleRate_in <= CHANNELIZER_RATE_MAX) { |