From ca0f7af1d0f9ce044352c31beb4d313c6ccc0096 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 8 Sep 2021 13:48:11 +0200 Subject: [PATCH] use stereo downmix; disable squelch for DRM --- csdr/chain/drm.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/csdr/chain/drm.py b/csdr/chain/drm.py index be06eed..12c9d3b 100644 --- a/csdr/chain/drm.py +++ b/csdr/chain/drm.py @@ -1,14 +1,17 @@ from csdr.chain.demodulator import BaseDemodulatorChain, FixedIfSampleRateChain, FixedAudioRateChain -from pycsdr.modules import Convert +from pycsdr.modules import Convert, Downmix from pycsdr.types import Format from owrx.drm import DrmModule class Drm(BaseDemodulatorChain, FixedIfSampleRateChain, FixedAudioRateChain): def __init__(self): - workers = [Convert(Format.COMPLEX_FLOAT, Format.COMPLEX_SHORT), DrmModule()] + workers = [Convert(Format.COMPLEX_FLOAT, Format.COMPLEX_SHORT), DrmModule(), Downmix()] super().__init__(workers) + def supportsSquelch(self) -> bool: + return False + def getFixedIfSampleRate(self) -> int: return 48000