mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-20 22:05:13 +00:00
add some first structure for DAB decoding
This commit is contained in:
parent
625afcfbbb
commit
5ddd719364
5 changed files with 61 additions and 1 deletions
21
csdr/chain/dablin.py
Normal file
21
csdr/chain/dablin.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue