audio capture stop fixes

prd
Ivan Maslov 2 years ago
parent e8a0cd1b7b
commit 5b7c24d855

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

Loading…
Cancel
Save