Fixed resampling bug + added waterfall colormap selection + general bugfix

This commit is contained in:
Ryzerth 2020-12-31 14:42:09 +01:00
parent 979928ded8
commit 9b00304c29

View File

@ -103,12 +103,9 @@ public:
xlator.stop(); xlator.stop();
} }
audioSampRate = sampleRate; audioSampRate = sampleRate;
float audioBW = std::min<float>(audioSampRate / 2.0f, bw / 2.0f);
agc.setSampleRate(audioSampRate); agc.setSampleRate(audioSampRate);
resamp.setOutSampleRate(audioSampRate); resamp.setOutSampleRate(audioSampRate);
win.setSampleRate(bbSampRate * resamp.getInterpolation()); win.setSampleRate(bbSampRate * resamp.getInterpolation());
win.setCutoff(audioBW);
win.setTransWidth(audioBW);
resamp.updateWindow(&win); resamp.updateWindow(&win);
xlator.setSampleRate(audioSampRate); xlator.setSampleRate(audioSampRate);
if (running) { if (running) {
@ -171,7 +168,7 @@ private:
const float bwMax = 500; const float bwMax = 500;
const float bwMin = 100; const float bwMin = 100;
const float bbSampRate = 6000; const float bbSampRate = 500;
std::string uiPrefix; std::string uiPrefix;
float snapInterval = 10; float snapInterval = 10;