mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-21 06:13:45 +00:00
save some cpu cycles by only running necessary stuff for services
This commit is contained in:
parent
441738e569
commit
42aae4c03a
3 changed files with 62 additions and 41 deletions
|
|
@ -376,7 +376,7 @@ class SpectrumThread(csdr.output):
|
|||
if self.sdrSource.isAvailable():
|
||||
self.dsp.start()
|
||||
|
||||
def add_output(self, type, read_fn):
|
||||
def receive_output(self, type, read_fn):
|
||||
if type != "audio":
|
||||
logger.error("unsupported output type received by FFT: %s", type)
|
||||
return
|
||||
|
|
@ -503,7 +503,7 @@ class DspManager(csdr.output):
|
|||
if self.sdrSource.isAvailable():
|
||||
self.dsp.start()
|
||||
|
||||
def add_output(self, t, read_fn):
|
||||
def receive_output(self, t, read_fn):
|
||||
logger.debug("adding new output of type %s", t)
|
||||
writers = {
|
||||
"audio": self.handler.write_dsp_data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue