separate decoder files

This commit is contained in:
Jakob Ketterl 2019-07-11 20:48:02 +02:00
parent 5ada234f64
commit d606c85443
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,10 @@ class Ft8Chopper(threading.Thread):
super().__init__()
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.setnchannels(1)
wavefile.setsampwidth(2)