From 093ad6cd0da1624b5cb2166262d4def703a62c02 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 8 May 2021 00:38:00 +0200 Subject: [PATCH] improve oversampling for resampling --- owrx/service/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/service/__init__.py b/owrx/service/__init__.py index a4062ca..00afe18 100644 --- a/owrx/service/__init__.py +++ b/owrx/service/__init__.py @@ -228,7 +228,7 @@ class ServiceHandler(SdrSourceEventClient): def get_bandwidth(self, group): minFreq, maxFreq = self.get_min_max(group) # minimum bandwidth for a resampler: 25kHz - return max(maxFreq - minFreq, 25000) + return max((maxFreq - minFreq) * 1.15, 25000) def optimizeResampling(self, freqs, bandwidth): freqs = sorted(freqs, key=lambda f: f["frequency"])