mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
17 lines
406 B
Python
17 lines
406 B
Python
|
|
class Chain(object):
|
||
|
|
def __init__(self, *workers):
|
||
|
|
self.workers = workers
|
||
|
|
stage = None
|
||
|
|
for w in self.workers:
|
||
|
|
if stage is not None:
|
||
|
|
w.setInput(stage.getBuffer())
|
||
|
|
stage = w
|
||
|
|
self.buffer = stage.getBuffer()
|
||
|
|
|
||
|
|
def stop(self):
|
||
|
|
for w in self.workers:
|
||
|
|
w.stop()
|
||
|
|
|
||
|
|
def getBuffer(self):
|
||
|
|
return self.buffer
|