---
name: "roar_stream_connect"
section: "3"
platform: "linux"
package: "libroar-dev"
version: "1.0~beta12-4"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/roar_stream_connect"
---

# roar\_stream\_connect(3)

Connect a stream to RoarAudio's sound server

## NAME

roar\_stream\_connect - Connect a stream to RoarAudio's sound server

## SYNOPSIS

\#include \<roaraudio.h\>

int roar\_stream\_connect(struct roar\_connection \* con, struct roar\_stream \* s, int dir);

## DESCRIPTION

This connects a new stream as created by [**roar\_stream\_new**(3)](/roar_stream_new/3.md) to the server.

## PARAMETERS

- **con**

  The connection to the sound server

- **s**

  The stream object to connect.

- **dir**

  The direction of the new stream. See [**roar\_simple\_stream**(3)](/roar_simple_stream/3.md) for details.

## RETURN VALUE

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

## EXAMPLES

FIXME

## SEE ALSO

[**roar\_stream\_new**(3)](/roar_stream_new/3.md), [**roar\_simple\_stream**(3)](/roar_simple_stream/3.md), [**libroar**(7)](/libroar/7.md), [**RoarAudio**(7)](/RoarAudio/7.md).
