mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-09-28 16:16:58 -04:00
Fix demod waterfall/spectrum
This commit is contained in:
parent
0b03ed47d4
commit
aa4478946f
@ -145,12 +145,12 @@ void SpectrumVisualProcessor::process() {
|
|||||||
bool newResampler = false;
|
bool newResampler = false;
|
||||||
int bwDiff;
|
int bwDiff;
|
||||||
|
|
||||||
if (bandwidth > resampleBw) {
|
// if (bandwidth > resampleBw) {
|
||||||
iqData->decRefCount();
|
// iqData->decRefCount();
|
||||||
iqData->busy_rw.unlock();
|
// iqData->busy_rw.unlock();
|
||||||
busy_run.unlock();
|
// busy_run.unlock();
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (is_view.load()) {
|
if (is_view.load()) {
|
||||||
if (!iqData->frequency || !iqData->sampleRate) {
|
if (!iqData->frequency || !iqData->sampleRate) {
|
||||||
@ -331,7 +331,7 @@ void SpectrumVisualProcessor::process() {
|
|||||||
for (int i = 0, iMax = fftSizeInternal; i < iMax; i++) {
|
for (int i = 0, iMax = fftSizeInternal; i < iMax; i++) {
|
||||||
if (i < fftSizeInternal/4) {
|
if (i < fftSizeInternal/4) {
|
||||||
fft_result_temp[i] = 0;
|
fft_result_temp[i] = 0;
|
||||||
} else if (i > fftSizeInternal - fftSizeInternal/4) {
|
} else if (i >= fftSizeInternal - fftSizeInternal/4) {
|
||||||
fft_result_temp[i] = 0;
|
fft_result_temp[i] = 0;
|
||||||
} else {
|
} else {
|
||||||
fft_result_temp[i] = fft_result_ma[(i-fftSizeInternal/4)*2];
|
fft_result_temp[i] = fft_result_ma[(i-fftSizeInternal/4)*2];
|
||||||
@ -342,7 +342,7 @@ void SpectrumVisualProcessor::process() {
|
|||||||
|
|
||||||
if (i < fftSizeInternal/4) {
|
if (i < fftSizeInternal/4) {
|
||||||
fft_result_temp[i] = 0;
|
fft_result_temp[i] = 0;
|
||||||
} else if (i > fftSizeInternal - fftSizeInternal/4) {
|
} else if (i >= fftSizeInternal - fftSizeInternal/4) {
|
||||||
fft_result_temp[i] = 0;
|
fft_result_temp[i] = 0;
|
||||||
} else {
|
} else {
|
||||||
fft_result_temp[i] = fft_result_maa[(i-fftSizeInternal/4)*2];
|
fft_result_temp[i] = fft_result_maa[(i-fftSizeInternal/4)*2];
|
||||||
|
Loading…
Reference in New Issue
Block a user