roar_stream_exec(3)

roar_stream_exec3

Set a stream as master stream of a client

Usage

#include <roaraudio.h>

int roar_stream_exec(struct roar_connection * con, struct roar_stream * s);

Overview

This sets a stream to be the master stream of a client. A master stream is a stream send via the client's control channel. If a master stream is closed the client and all it's streams are closed. Setting a master stream can not be undone nor can any control commands be send anymore. This is used mainly for opening a connection for just playback without need to change things later like roar_simple_play(3) does it.

Parameters

con

The connection to the server.

s

The stream to be set as master stream.

Return value

On success these calls return 0. On error, -1 is returned.

Examples

FIXME

Releases

6 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7–8
  3. 9–11

From libroar-dev 1.0~beta12-4 in Debian 11 (Bullseye). Parsed by carta from the page's man source.