mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-19 14:52:43 +00:00
Fixed resampling bug + added waterfall colormap selection + general bugfix
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
||||
|
||||
demod.init(&squelch.out);
|
||||
|
||||
agc.init(&demod.out, 1.0f / 125.0f);
|
||||
agc.init(&demod.out, 20.0f, bbSampRate);
|
||||
|
||||
float audioBW = std::min<float>(audioSampRate / 2.0f, bw / 2.0f);
|
||||
win.init(audioBW, audioBW, bbSampRate);
|
||||
@@ -151,6 +151,11 @@ private:
|
||||
void setBandwidth(float bandWidth) {
|
||||
bw = bandWidth;
|
||||
_vfo->setBandwidth(bw);
|
||||
float audioBW = std::min<float>(audioSampRate / 2.0f, bw / 2.0f);
|
||||
win.setSampleRate(bbSampRate * resamp.getInterpolation());
|
||||
win.setCutoff(audioBW);
|
||||
win.setTransWidth(audioBW);
|
||||
resamp.updateWindow(&win);
|
||||
}
|
||||
|
||||
void setSnapInterval(float snapInt) {
|
||||
|
||||
Reference in New Issue
Block a user