openwebrx-clone/csdr/chain/demodulator.py

33 lines
566 B
Python
Raw Normal View History

2021-08-31 14:54:37 +00:00
from pycsdr.modules import Reader
2021-07-19 17:04:14 +00:00
from csdr.chain import Chain
2021-08-27 15:34:48 +00:00
from abc import ABC, abstractmethod
2021-07-19 17:04:14 +00:00
2021-08-23 12:25:28 +00:00
class BaseDemodulatorChain(Chain):
def getFixedIfSampleRate(self):
return None
2021-07-31 22:49:20 +00:00
2021-08-23 12:25:28 +00:00
def supportsSquelch(self):
return True
2021-08-27 15:34:48 +00:00
2021-08-31 14:54:37 +00:00
class SecondaryDemodulator(Chain):
pass
2021-08-27 15:34:48 +00:00
class FixedAudioRateChain(ABC):
@abstractmethod
def getFixedAudioRate(self):
pass
class FixedIfSampleRateChain(ABC):
@abstractmethod
def getFixedIfSampleRate(self):
return self.fixedIfSampleRate
# marker interface
class HdAudio:
pass