Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

roar_get_vol(3) [debian man page]

roar_get_vol(3) 					System Manager's Manual: RoarAudio					   roar_get_vol(3)

NAME
roar_get_vol, roar_set_vol, roar_set_vol2 - Set mixer levels or RoarAudio streams SYNOPSIS
#include <roaraudio.h> int roar_set_vol(struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels); int roar_set_vol2 (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels, int mode); int roar_get_vol(struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int * channels); DESCRIPTION
This call gets or sets the mixing levels for a stream. roar_set_vol() is marked obsolete and will be removed soon, use roar_set_vol2(). PARAMETERS
con The connection to the roar audio server. id The ID of the stream to change. mixer The mixer state for the stream. channels The number of channels to set mixer data for or the number of channels mixer data is returned. mode The mode of operating. Currently the following modes are supported: ROAR_SET_VOL_ALL, ROAR_SET_VOL_MS, ROAR_SET_VOL_UNMAPPED. RETURN VALUE
On success these calls return 0. On error, -1 is returned. EXAMPLES
FIXME SEE ALSO
libroar(7), RoarAudio(7). RoarAudio May 2011 roar_get_vol(3)

Check Out this Related Man Page

roar_simple_new_stream(3)				System Manager's Manual: RoarAudio				 roar_simple_new_stream(3)

NAME
roar_simple_new_stream, roar_simple_new_stream_obj - Create a new stream via RoarAudio SYNOPSIS
#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); DESCRIPTION
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 controll 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. SEE ALSO
roar_vs_new_simple(3), roar_simple_connect(3), roar_simple_play(3), roar_simple_close(3), libroar(7), RoarAudio(7). RoarAudio May 2011 roar_simple_new_stream(3)
Man Page