improve oversampling for resampling
This commit is contained in:
parent
fd26acca68
commit
093ad6cd0d
@ -228,7 +228,7 @@ class ServiceHandler(SdrSourceEventClient):
|
|||||||
def get_bandwidth(self, group):
|
def get_bandwidth(self, group):
|
||||||
minFreq, maxFreq = self.get_min_max(group)
|
minFreq, maxFreq = self.get_min_max(group)
|
||||||
# minimum bandwidth for a resampler: 25kHz
|
# minimum bandwidth for a resampler: 25kHz
|
||||||
return max(maxFreq - minFreq, 25000)
|
return max((maxFreq - minFreq) * 1.15, 25000)
|
||||||
|
|
||||||
def optimizeResampling(self, freqs, bandwidth):
|
def optimizeResampling(self, freqs, bandwidth):
|
||||||
freqs = sorted(freqs, key=lambda f: f["frequency"])
|
freqs = sorted(freqs, key=lambda f: f["frequency"])
|
||||||
|
Loading…
Reference in New Issue
Block a user