docs: def close(self):
          """Close the file.  Can be called multiple times."""
          if not self.closed:
              # be sure to flush data to disk before closing the file
              self.flush()
              err = _snd.sf_close(self._file)
              self._file = None
              _error_check(err)