Skip to content

Commit 7dc09a4

Browse files
committed
Call stream.stop() in stop()
Fixes #87.
1 parent 73b260c commit 7dc09a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sounddevice.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,9 @@ def stop(ignore_errors=True):
592592
593593
"""
594594
if _last_callback:
595+
# Calling stop() before close() is necessary for older PortAudio
596+
# versions, see issue #87:
597+
_last_callback.stream.stop(ignore_errors)
595598
_last_callback.stream.close(ignore_errors)
596599

597600

0 commit comments

Comments
 (0)