def __init__(self, pcm_frames, sample_rate, f1, a1, f2, a2, fmult): Sine_Stereo.__init__(self, 24, pcm_frames, sample_rate, f1, a1, f2, a2, fmult) self.pcm_frames = pcm_frames self.f1 = f1 self.a1 = a1 self.f2 = f2 self.a2 = a2 self.fmult = fmult self.md5 = md5()
def reset(self): Sine_Stereo.reset(self) self.md5 = md5()
def read(self, pcm_frames): framelist = Sine_Stereo.read(self, pcm_frames) self.md5.update(framelist.to_bytes(False, True)) return framelist