From abf1f19839059453436738d8d2979d22772c101c Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 19 Aug 2017 17:00:31 +0200 Subject: Close sets the internal stream pointer to NULL As recommended in https://lists.columbia.edu/pipermail/portaudio/2017-March/001076.html --- sounddevice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sounddevice.py b/sounddevice.py index 8695ce2..1f515f7 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -1286,6 +1286,7 @@ class _StreamBase(object): """ err = _lib.Pa_CloseStream(self._ptr) + self._ptr = _ffi.NULL if not ignore_errors: _check(err, 'Error closing stream') -- cgit v1.2.3