diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2017-07-01 16:53:06 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2017-07-01 16:55:09 +0200 |
| commit | 7dc09a414a800295ed482fdbd2e3228f834085e9 (patch) | |
| tree | d8f6e5a1c868801e14c88a5fdb01fcc652fcce1c /sounddevice.py | |
| parent | 73b260cb4f3f1240de636e29ccf6e0ca90f03d8b (diff) | |
Call stream.stop() in stop()
Fixes #87.
Diffstat (limited to 'sounddevice.py')
| -rw-r--r-- | sounddevice.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |
