2021-02-20 18:09:24 +01:00
|
|
|
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
|
2024-01-17 22:39:05 +01:00
|
|
|
from owrx.form.input.validator import Range
|
2024-01-19 02:39:15 +01:00
|
|
|
from typing import List
|
2020-05-10 00:03:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class RadioberrySource(SoapyConnectorSource):
|
|
|
|
|
def getDriver(self):
|
|
|
|
|
return "radioberry"
|
2021-02-20 18:09:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class RadioberryDeviceDescription(SoapyConnectorDeviceDescription):
|
2021-04-17 17:42:08 +02:00
|
|
|
def getName(self):
|
|
|
|
|
return "RadioBerry"
|
2024-01-17 22:39:05 +01:00
|
|
|
|
2024-01-19 02:39:15 +01:00
|
|
|
def getSampleRateRanges(self) -> List[Range]:
|
2024-01-17 22:39:05 +01:00
|
|
|
return [
|
|
|
|
|
Range(48000),
|
|
|
|
|
Range(96000),
|
|
|
|
|
Range(192000),
|
|
|
|
|
Range(384000),
|
|
|
|
|
]
|