mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
22 lines
655 B
Python
22 lines
655 B
Python
from csdr.chain.demodulator import BaseDemodulatorChain, FixedIfSampleRateChain, FixedAudioRateChain, HdAudio
|
|
from csdreti.modules import EtiDecoder
|
|
from owrx.dab.dablin import DablinModule
|
|
from pycsdr.modules import Downmix
|
|
from pycsdr.types import Format
|
|
|
|
|
|
class Dablin(BaseDemodulatorChain, FixedIfSampleRateChain, FixedAudioRateChain, HdAudio):
|
|
def __init__(self):
|
|
workers = [
|
|
EtiDecoder(),
|
|
DablinModule(),
|
|
Downmix(Format.FLOAT),
|
|
]
|
|
super().__init__(workers)
|
|
|
|
def getFixedIfSampleRate(self) -> int:
|
|
return 2048000
|
|
|
|
def getFixedAudioRate(self) -> int:
|
|
return 48000
|