pub unsafe extern "C" fn pw_stream_connect(
    stream: *mut pw_stream,
    direction: spa_direction,
    target_id: u32,
    flags: pw_stream_flags,
    params: *mut *const spa_pod,
    n_params: u32
) -> c_int
Expand description

Connect a stream for input or output on \a port_path. \return 0 on success < 0 on error.

You should connect to the process event and use pw_stream_dequeue_buffer() to get the latest metadata and data.