mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 12:47:40 +01:00
Fixed resampling bug + added waterfall colormap selection + general bugfix
This commit is contained in:
parent
979928ded8
commit
9b00304c29
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user