kopia lustrzana https://github.com/dnet/pySSTV
Removed tostring() in write_wav. Python 3.9+ has removed the tostring() methods from array.array and other primitives.
rodzic
9143aaec97
commit
71ddabcb1d
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue