limit freedv to 4kHz since it's audio input is only 8kHz

This commit is contained in:
Jakob Ketterl 2021-09-13 16:58:45 +02:00
parent e5b120311d
commit 1ff3c174c2

View File

@ -13,6 +13,8 @@ Filter.prototype.getLimits = function() {
max_bw = 100000; max_bw = 100000;
} else if (this.demodulator.get_modulation() === 'drm') { } else if (this.demodulator.get_modulation() === 'drm') {
max_bw = 50000; max_bw = 50000;
} else if (this.demodulator.get_modulation() === "freedv") {
max_bw = 4000;
} else { } else {
max_bw = (audioEngine.getOutputRate() / 2) - 1; max_bw = (audioEngine.getOutputRate() / 2) - 1;
} }