mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-21 06:13:45 +00:00
return to the simpler API
This commit is contained in:
parent
be6f533437
commit
0f1feb9d47
4 changed files with 43 additions and 73 deletions
|
|
@ -56,7 +56,7 @@ class SpectrumThread(SdrSourceEventClient):
|
|||
threading.Thread(target=self.dsp.pump(self.sdrSource.writeSpectrumData)).start()
|
||||
|
||||
if self.sdrSource.isAvailable():
|
||||
self.dsp.setInput(self.sdrSource.getBuffer())
|
||||
self.dsp.setReader(self.sdrSource.getBuffer().getReader())
|
||||
|
||||
def stop(self):
|
||||
if self.dsp is None:
|
||||
|
|
@ -81,7 +81,7 @@ class SpectrumThread(SdrSourceEventClient):
|
|||
if self.dsp is None:
|
||||
self.start()
|
||||
else:
|
||||
self.dsp.setInput(self.sdrSource.getBuffer())
|
||||
self.dsp.setReader(self.sdrSource.getBuffer().getReader())
|
||||
|
||||
def onFail(self):
|
||||
self.dsp.stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue