This commit is contained in:
Jakob Ketterl
2021-08-27 17:34:48 +02:00
parent 42b315ef86
commit 4c1777dc19
4 changed files with 29 additions and 17 deletions

View File

@@ -1,12 +1,27 @@
from csdr.chain import Chain
from abc import ABC, abstractmethod
class BaseDemodulatorChain(Chain):
def getFixedIfSampleRate(self):
return None
def getFixedAudioRate(self):
return None
def supportsSquelch(self):
return True
class FixedAudioRateChain(ABC):
@abstractmethod
def getFixedAudioRate(self):
pass
class FixedIfSampleRateChain(ABC):
@abstractmethod
def getFixedIfSampleRate(self):
return self.fixedIfSampleRate
# marker interface
class HdAudio:
pass