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