Removed tostring() in write_wav. Python 3.9+ has removed the tostring() methods from array.array and other primitives.

This commit is contained in:
Edmond Belliveau 2021-03-01 18:07:38 -04:00
parent 9143aaec97
commit 71ddabcb1d

View file

@ -54,7 +54,7 @@ class SSTV(object):
wav.setnchannels(self.nchannels)
wav.setsampwidth(self.bits // 8)
wav.setframerate(self.samples_per_sec)
wav.writeframes(data.tostring())
wav.writeframes(data)
def gen_samples(self):
"""generates discrete samples from gen_values()