From 7dc09a414a800295ed482fdbd2e3228f834085e9 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 1 Jul 2017 16:53:06 +0200 Subject: Call stream.stop() in stop() Fixes #87. --- sounddevice.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sounddevice.py b/sounddevice.py index d12bcf9..1b85da9 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -592,6 +592,9 @@ def stop(ignore_errors=True): """ if _last_callback: + # Calling stop() before close() is necessary for older PortAudio + # versions, see issue #87: + _last_callback.stream.stop(ignore_errors) _last_callback.stream.close(ignore_errors) -- cgit v1.2.3