mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-12 19:27:11 +01:00
Fixed CW demod + fixed bug in sinks
This commit is contained in:
parent
4174554260
commit
d0bea51cd4
@ -73,6 +73,7 @@ public:
|
|||||||
if (i == devId) {
|
if (i == devId) {
|
||||||
devListId = devices.size();
|
devListId = devices.size();
|
||||||
defaultDev = devListId;
|
defaultDev = devListId;
|
||||||
|
_stream->setSampleRate(dev.sampleRates[0]);
|
||||||
}
|
}
|
||||||
dev.srId = 0;
|
dev.srId = 0;
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ public:
|
|||||||
void menuHandler() {}
|
void menuHandler() {}
|
||||||
|
|
||||||
static SinkManager::Sink* create(SinkManager::Stream* stream, std::string streamName, void* ctx) {
|
static SinkManager::Sink* create(SinkManager::Stream* stream, std::string streamName, void* ctx) {
|
||||||
stream->srChange.emit(48000);
|
stream->setSampleRate(48000);
|
||||||
return new SinkManager::NullSink(stream);
|
return new SinkManager::NullSink(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ private:
|
|||||||
|
|
||||||
const float bwMax = 500;
|
const float bwMax = 500;
|
||||||
const float bwMin = 100;
|
const float bwMin = 100;
|
||||||
const float bbSampRate = 500;
|
const float bbSampRate = 6000;
|
||||||
|
|
||||||
std::string uiPrefix;
|
std::string uiPrefix;
|
||||||
float snapInterval = 10;
|
float snapInterval = 10;
|
||||||
|
@ -92,7 +92,7 @@ public:
|
|||||||
resamp.stop();
|
resamp.stop();
|
||||||
}
|
}
|
||||||
audioSampRate = sampleRate;
|
audioSampRate = sampleRate;
|
||||||
float audioBW = std::min<float>(audioSampRate / 2.0f, 16000.0f);
|
float audioBW = std::min<float>(audioSampRate / 2.0f, bw / 2.0f);
|
||||||
resamp.setOutSampleRate(audioSampRate);
|
resamp.setOutSampleRate(audioSampRate);
|
||||||
win.setSampleRate(bbSampRate * resamp.getInterpolation());
|
win.setSampleRate(bbSampRate * resamp.getInterpolation());
|
||||||
win.setCutoff(audioBW);
|
win.setCutoff(audioBW);
|
||||||
|
Loading…
Reference in New Issue
Block a user