mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
rename startmm to getDecoderInstance
This commit is contained in:
parent
ba2fab398e
commit
e1afdcec7d
|
|
@ -66,7 +66,7 @@ class InputBase(ABC):
|
|||
logging.debug("Add received data to queue")
|
||||
print(data)
|
||||
|
||||
def startmm(self, decoderConfig, StdIn):
|
||||
def getDecoderInstance(self, decoderConfig, StdIn):
|
||||
mmProc = ProcessManager(str(decoderConfig.get("mmPath", default="multimon-ng")), textMode=True)
|
||||
if decoderConfig.get("fms", default=0):
|
||||
mmProc.addArgument("-a FMSFSK")
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class LineInInput(InputBase):
|
|||
lineInProc.setStderr(open(paths.LOG_PATH + "asla.log", "a"))
|
||||
lineInProc.start()
|
||||
|
||||
mmProc = self.startmm(decoderConfig, lineInProc.stdout)
|
||||
mmProc = self.getDecoderInstance(decoderConfig, lineInProc.stdout)
|
||||
mmProc.start()
|
||||
|
||||
logging.info("start decoding")
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class PulseAudioInput(InputBase):
|
|||
PulseAudioProc.setStderr(open(paths.LOG_PATH + "pulseaudio.log", "a"))
|
||||
PulseAudioProc.start()
|
||||
|
||||
mmProc = self.startmm(decoderConfig, PulseAudioProc.stdout)
|
||||
mmProc = self.getDecoderInstance(decoderConfig, PulseAudioProc.stdout)
|
||||
mmProc.start()
|
||||
|
||||
logging.info("start decoding")
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class SdrInput(InputBase):
|
|||
sdrProc.setStderr(open(paths.LOG_PATH + "rtl_fm.log", "a"))
|
||||
sdrProc.start()
|
||||
|
||||
mmProc = self.startmm(decoderConfig, sdrProc.stdout)
|
||||
mmProc = self.getDecoderInstance(decoderConfig, sdrProc.stdout)
|
||||
mmProc.start()
|
||||
|
||||
logging.info("start decoding")
|
||||
|
|
|
|||
Loading…
Reference in a new issue