'Stop the stream. Once the stream is stopped, one may not call
write or read.  Call :py:func:`start_stream` to resume the
stream.'

def stop_stream(self):

    if (not self._is_running):
        return
    pa.stop_stream(self._stream)
    self._is_running = False
