roar_simple_new_stream_obj3
Create a new stream via roaraudio
Overview
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).
Parameters
con-
The "parent" connection. This is a valid open control connection as opend via roar_simple_connect(3).
s-
The stream object to be updated to corresponde to the new stream. This is useful if use want to update some meta data after the stream has be opened as you can use all control commands on this object.
- rate, channels, bits, codec
-
For an explanation on these parameters see roar_simple_play(3).
dir-
For an explanation on this parameter see roar_simple_stream(3).
Return value
On success these calls return a new filehandle. On error, -1 is returned.
Examples
An example of the use of roar_simple_new_stream_obj() can be found on roarvorbis(1) code.
History
- Debian 11 (Bullseye) to Debian 9 (Stretch): the text shown here
- Debian 8 (Jessie) to Debian 7 (Wheezy)
- Debian 6.0 (Squeeze)