'Terminate PortAudio.
:attention: Be sure to call this method for every instance of
this object to release PortAudio resources.'

def terminate(self):

    for stream in self._streams.copy():
        stream.close()
    self._streams = set()
    pa.terminate()
