fix sample rates
This commit is contained in:
parent
e63569e3e9
commit
f53b51a208
4
csdr.py
4
csdr.py
@ -150,7 +150,7 @@ class dsp(object):
|
|||||||
if which == "nfm":
|
if which == "nfm":
|
||||||
chain += ["csdr fmdemod_quadri_cf", "csdr limit_ff"]
|
chain += ["csdr fmdemod_quadri_cf", "csdr limit_ff"]
|
||||||
chain += last_decimation_block
|
chain += last_decimation_block
|
||||||
chain += ["csdr deemphasis_nfm_ff {output_rate}"]
|
chain += ["csdr deemphasis_nfm_ff {audio_rate}"]
|
||||||
if self.get_audio_rate() != self.get_output_rate():
|
if self.get_audio_rate() != self.get_output_rate():
|
||||||
chain += [
|
chain += [
|
||||||
"sox -t raw -r {audio_rate} -e floating-point -b 32 -c 1 --buffer 32 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - "
|
"sox -t raw -r {audio_rate} -e floating-point -b 32 -c 1 --buffer 32 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - "
|
||||||
@ -433,7 +433,7 @@ class dsp(object):
|
|||||||
|
|
||||||
def isPacket(self, demodulator = None):
|
def isPacket(self, demodulator = None):
|
||||||
if demodulator is None:
|
if demodulator is None:
|
||||||
demodulator = self.get_demodulator()
|
demodulator = self.get_secondary_demodulator()
|
||||||
return demodulator == "packet"
|
return demodulator == "packet"
|
||||||
|
|
||||||
def set_output_rate(self, output_rate):
|
def set_output_rate(self, output_rate):
|
||||||
|
Loading…
Reference in New Issue
Block a user