separate decoder files

This commit is contained in:
Jakob Ketterl 2019-07-11 20:48:02 +02:00
parent 5ada234f64
commit d606c85443

View File

@ -25,7 +25,10 @@ class Ft8Chopper(threading.Thread):
super().__init__() super().__init__()
def getWaveFile(self): def getWaveFile(self):
filename = "/tmp/openwebrx-ft8chopper-{0}.wav".format(datetime.now().strftime("%Y%m%d-%H%M%S")) filename = "/tmp/openwebrx-ft8chopper-{id}-{timestamp}.wav".format(
id = id(self),
timestamp = datetime.now().strftime("%Y%m%d-%H%M%S")
)
wavefile = wave.open(filename, "wb") wavefile = wave.open(filename, "wb")
wavefile.setnchannels(1) wavefile.setnchannels(1)
wavefile.setsampwidth(2) wavefile.setsampwidth(2)