// Close closes connection to server. func (conn *Conn) Close() { C.pa_simple_free(conn.simple) }
// Stream.Free closes the stream and frees the associated memory. // The stream becomes invalid after this has been called. // This should usually be deferred immediately after obtaining a stream. func (s *Stream) Free() { C.pa_simple_free(s.simple) }