audio capture stop fixes

prd
Ivan Maslov 2 years ago
parent e8a0cd1b7b
commit 5b7c24d855

@ -238,8 +238,8 @@ class Recorder:
:type inExtra: any, опционально :type inExtra: any, опционально
""" """
self.mCaptureBool=False self.mCaptureBool=False
if inWaitStream == True: self.mCaptureThread.join()
self.mStream.stop_stream() self.mStream.stop_stream()
if inWaitStream == True: self.mCaptureThread.join()
self.mStream.close() self.mStream.close()
#Close module #Close module
self.mAudio.terminate() self.mAudio.terminate()

Loading…
Cancel
Save