roar_simple_new_stream(3) | System Manager's Manual: RoarAudio | roar_simple_new_stream(3) |
roar_simple_new_stream, roar_simple_new_stream_obj - Create a new stream via RoarAudio
#include <roaraudio.h>
int roar_simple_new_stream(struct roar_connection * con, int rate, int channels, int bits, int codec, int dir);
int roar_simple_new_stream_obj(struct roar_connection * con, struct roar_stream * s, int rate, int channels, int bits, int codec, int dir);
Opens a new stream to the sound server as a independet file handle (not an execed one). This is useful if you still want some meta data or the volume to be updated after the stream is open.
This functions are marked obsolete and will be removed in later releases. Please upgrade to VS API. See roar_vs_new_simple(3).
On success these calls return a new filehandle. On error, -1 is returned.
An example of the use of roar_simple_new_stream_obj() can be found on roarvorbis(1) code.
roar_vs_new_simple(3), roar_simple_connect(3), roar_simple_play(3), roar_simple_close(3), libroar(7), RoarAudio(7).
May 2011 | RoarAudio |