use stereo downmix; disable squelch for DRM

This commit is contained in:
Jakob Ketterl 2021-09-08 13:48:11 +02:00
parent d9db74e565
commit ca0f7af1d0

View File

@ -1,14 +1,17 @@
from csdr.chain.demodulator import BaseDemodulatorChain, FixedIfSampleRateChain, FixedAudioRateChain 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 pycsdr.types import Format
from owrx.drm import DrmModule from owrx.drm import DrmModule
class Drm(BaseDemodulatorChain, FixedIfSampleRateChain, FixedAudioRateChain): class Drm(BaseDemodulatorChain, FixedIfSampleRateChain, FixedAudioRateChain):
def __init__(self): 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) super().__init__(workers)
def supportsSquelch(self) -> bool:
return False
def getFixedIfSampleRate(self) -> int: def getFixedIfSampleRate(self) -> int:
return 48000 return 48000