SIMPLE SOLUTIONS

MUROAR_STREAM(3) - Linux man page online | Library functions

Create a stream connected to a RoarAudio sound server.

Chapter
April 2012
muroar_stream(3) muRoar Programmer's Manual muroar_stream(3)

NAME

muroar_stream - Create a stream connected to a RoarAudio sound server

SYNOPSIS

#include <muroar.h> muroar_t muroar_stream (muroar_t fh, int dir, int * stream, int codec, int rate, int chan‐ nels, int bits);

DESCRIPTION

This function connects a stream to a sound server supporting the RoarAudio protocol. It takes a connected control connection created with roar_connect(3) and converts it into a connected stream. The socket can no longer be used as control connection.

PARAMETERS

fh The connected control connection. dir The stream direction for the new stream. For playback of a waveform stream (PCM data) this is MUROAR_PLAY_WAVE. For all possible values see the official muRoar manual. stream This is a pointer to an integer muRoar stores the stream ID in. If your applica‐ tion does not need to know the stream ID of the new stream this can be set to NULL. codec This is the codec to be used for the new stream. For signed PCM in host byte order use MUROAR_CODEC_PCM or MUROAR_CODEC_PCM_S. For unsigned PCM use MUROAR_CODEC_PCM_U. There are a lot other codecs defined. However using a codec not supported by the server will result an failure of this call. For all possible values see the official muRoar manual. rate This is the sample/frame rate the new stream will use. For streams this setting does not make any sense set this to zero. channels This is the number of channels for the new stream. For streams this setting does not make any sense set this to zero. bits This is the number of bits per sample to be used by the data. For streams this setting does not make any sense set this to zero.

RETURN VALUE

On success this call return the new stream IO handle. This may be the same as the control connection or a new one and the control connection is closed. On error, MUROAR_HAN‐ DLE_INVALID is returned.

BUGS

In failure where is no way to tell was was going wrong.

HISTORY

This function first appeared in muRoar version 0.1beta0.

SEE ALSO

muroar_connect(3), muroar_close(3), RoarAudio(7).
muRoar April 2012 muroar_stream(3)
This manual Reference Other manuals
muroar_stream(3) referred by muroar_close(3) | muroar_quit(3) | muroar_read(3) | muroar_write(3)
refer to muroar_close(3) | muroar_connect(3) | roar_connect(3) | RoarAudio(7)
Download raw manual
Main page muRoar Programmer's Manual (+5) muRoar (+8) № 3 (+68044)
Go top