File: muroar_setvolume.3

package info (click to toggle)
muroar 0.1.13-4
  • links: PTS
  • area: main
  • in suites: buster
  • size: 296 kB
  • ctags: 187
  • sloc: ansic: 887; sh: 236; makefile: 105
file content (56 lines) | stat: -rw-r--r-- 1,617 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.\" muroar_beep.3

.TH "muroar_setvolume" "3" "April 2012" "muRoar" "muRoar Programmer's Manual"

.SH NAME
muroar_setvolume \- Set volume of a stream on a RoarAudio sound server

.SH SYNOPSIS

#include <muroar.h>

int muroar_setvolume   (muroar_t fh, int stream, long unsigned int left, long unsigned int right);

.SH "DESCRIPTION"

This function sets the volume of a stream on a sound server supporting
the RoarAudio protocol. It takes a connected control connection created with \fBroar_connect\fR(3)
and used it to comunicate with the already connected server.
In addition it takes the stream ID and the volume for the left and right channel.

This function supports both mono and stereo streams. It also supports setting volume to multi-channel
streams if the server supports UNMAPPED mode.

To set a volume in mono just provide the same volume for both (left and right channel) channels.

.SH "PARAMETERS"
.TP
\fBfh\fR
The connected control connection.

.TP
\fBstream\fR
This is the ID of the stream to set the volume for.

.TP
\fBleft\fR, \fBright\fR
This is the volume of the corresponding channel. The value is a 16 bit unsigned number
so it has the range from 0 (truely muted, -InfdB) to 65535 (full volume, 0dB).

.SH "RETURN VALUE"
On success this call return 0. On error, \-1 is returned.

.SH BUGS
In failure where is no way to tell was was going wrong.
In case of failture the control connection needs to be closed with \fBmuroar_close\fR(3).

.SH HISTORY

This function first appeared in muRoar version 0.1.8.

.SH "SEE ALSO"
\fBmuroar_connect\fR(3),
\fBmuroar_close\fR(3),
\fBRoarAudio\fR(7).

.\" ll