mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-03 06:24:49 -04:00
Add 'Reduced CPU Usage' menu option and config entry.
This commit is contained in:
@@ -201,6 +201,14 @@ void SpectrumVisualProcessor::setFFTSize(unsigned int fftSize_in) {
|
||||
fftSizeChanged.store(true);
|
||||
}
|
||||
|
||||
unsigned int SpectrumVisualProcessor::getFFTSize() {
|
||||
if (fftSizeChanged.load()) {
|
||||
return newFFTSize;
|
||||
}
|
||||
return fftSize.load();
|
||||
}
|
||||
|
||||
|
||||
void SpectrumVisualProcessor::setHideDC(bool hideDC) {
|
||||
this->hideDC.store(hideDC);
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ public:
|
||||
|
||||
void setup(unsigned int fftSize);
|
||||
void setFFTSize(unsigned int fftSize);
|
||||
unsigned int getFFTSize();
|
||||
void setHideDC(bool hideDC);
|
||||
|
||||
void setScaleFactor(float sf);
|
||||
|
||||
Reference in New Issue
Block a user