mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
28 lines
486 B
Python
28 lines
486 B
Python
from csdr.chain import Chain
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
class BaseDemodulatorChain(Chain):
|
|
def getFixedIfSampleRate(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
|