def stream_start(self):
self.log.info("BinSim: stream_start")
self.stream = self.p.open(format=pyaudio.paFloat32, channels=2,
rate=self.sampleRate, output=True,
frames_per_buffer=self.blockSize,
stream_callback=audio_callback(self))
self.stream.start_stream()
while self.stream.is_active():
time.sleep(1)
评论列表
文章目录