mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
* version 0.20 of redsea interprets the parameter differently * we can rely on the default for now
15 lines
368 B
Python
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
|
|
)
|