From 1ff3c174c279ecfd7b6ee2e85e9e5e6097ac4159 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Mon, 13 Sep 2021 16:58:45 +0200 Subject: [PATCH] limit freedv to 4kHz since it's audio input is only 8kHz --- htdocs/lib/Demodulator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/lib/Demodulator.js b/htdocs/lib/Demodulator.js index 352ebe1..b43adce 100644 --- a/htdocs/lib/Demodulator.js +++ b/htdocs/lib/Demodulator.js @@ -13,6 +13,8 @@ Filter.prototype.getLimits = function() { max_bw = 100000; } else if (this.demodulator.get_modulation() === 'drm') { max_bw = 50000; + } else if (this.demodulator.get_modulation() === "freedv") { + max_bw = 4000; } else { max_bw = (audioEngine.getOutputRate() / 2) - 1; }