mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-21 06:13:45 +00:00
attempt to include m17-demod (untested due to lack of signals)
This commit is contained in:
parent
2579b9be26
commit
017bbc3748
3 changed files with 17 additions and 2 deletions
|
|
@ -73,6 +73,7 @@ class FeatureDetector(object):
|
|||
"digital_voice_digiham": ["digiham", "sox"],
|
||||
"digital_voice_dsd": ["dsd", "sox", "digiham"],
|
||||
"digital_voice_freedv": ["freedv_rx", "sox"],
|
||||
"digital_voice_m17": ["m17_demod", "sox"],
|
||||
"wsjt-x": ["wsjtx", "sox"],
|
||||
"packet": ["direwolf", "sox"],
|
||||
"pocsag": ["digiham", "sox"],
|
||||
|
|
@ -148,7 +149,7 @@ class FeatureDetector(object):
|
|||
# prevent X11 programs from opening windows if called from a GUI shell
|
||||
env.pop("DISPLAY", None)
|
||||
try:
|
||||
process = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, cwd=tmp_dir, env=env)
|
||||
process = subprocess.Popen(cmd, stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, cwd=tmp_dir, env=env)
|
||||
rc = process.wait()
|
||||
if expected_result is None:
|
||||
return rc != 32512
|
||||
|
|
@ -417,6 +418,10 @@ class FeatureDetector(object):
|
|||
"""
|
||||
return self.command_is_runnable("dsd")
|
||||
|
||||
def has_m17_demod(self):
|
||||
# TODO: documentation
|
||||
return self.command_is_runnable("m17-demod")
|
||||
|
||||
def has_sox(self):
|
||||
"""
|
||||
The sox audio library is used to convert between the typical 8 kHz audio sampling rate used by digital modes and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue