openwebrx/owrx/rds/redsea.py
Jakob Ketterl 97ace65537 don't specify the input paramter
* version 0.20 of redsea interprets the parameter differently
* we can rely on the default for now
2024-01-20 18:38:08 +01:00

15 lines
368 B
Python

from pycsdr.modules import ExecModule
from pycsdr.types import Format
class RedseaModule(ExecModule):
def __init__(self, sampleRate: int, rbds: bool):
args = ["redsea", "--samplerate", str(sampleRate)]
if rbds:
args += ["--rbds"]
super().__init__(
Format.SHORT,
Format.CHAR,
args
)