docs: def _error_check(err, prefix=""):
      """Pretty-print a numerical error code if there is an error."""
      if err != 0:
          err_str = _snd.sf_error_number(err)
          raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))