From e8068a8795fb6bfc7c666a68d10a9533b61d3e8b Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 4 Sep 2020 19:14:16 +0200 Subject: [PATCH] fix dream audio output --- csdr/csdr.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/csdr/csdr.py b/csdr/csdr.py index ad70187..2d8298a 100644 --- a/csdr/csdr.py +++ b/csdr/csdr.py @@ -251,8 +251,11 @@ class dsp(object): ] elif self.isDrm(which): chain += last_decimation_block - chain += ["csdr convert_f_s16"] - chain += ["dream -c 6 --sigsrate 48000 -w test.wav -I - -O -"] + chain += [ + "csdr convert_f_s16", + "dream -c 6 --sigsrate 48000 --audsrate 48000 -I - -O -", + "sox -t raw -r 48000 -e signed-integer -b 16 -c 2 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - ", + ] elif which == "ssb": chain += ["csdr realpart_cf"] chain += last_decimation_block @@ -581,7 +584,7 @@ class dsp(object): def isHdAudio(self, demodulator=None): if demodulator is None: demodulator = self.get_demodulator() - return demodulator in ["wfm", "drm"] + return demodulator == "wfm" def isDrm(self, demodulator=None): if demodulator is None: