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

# roar\_server\_oinfo(3)

Gets information on the output stream of RoarAudio's sound server

## NAME

roar\_server\_oinfo, roar\_server\_oinfo2 - Gets information on the output stream of RoarAudio's sound server

## SYNOPSIS

\#include \<roaraudio.h\>

int roar\_server\_oinfo(struct roar\_connection \* con, struct roar\_stream \* s); int roar\_server\_oinfo2(struct roar\_connection \* con, struct roar\_stream \* s, int dir);

## DESCRIPTION

Gets information about the default mixer stream for the given stream direction. This can be used to get optimal parameters for all operations so the server don't need to resample.

roar\_server\_oinfo() is marked as obsolete and will be removed soon.

## PARAMETERS

- **con**

  The connection to the server.

- **s**

  A stream object to be filled with information on the output stream.

- **dir**

  The stream direction to query mixer data for.

## RETURN VALUE

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

## EXAMPLES

FIXME

## SEE ALSO

[**libroar**(7)](/libroar/7.md), [**RoarAudio**(7)](/RoarAudio/7.md).
