alSynSetVol.3p
794 Bytes
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
.TH alSynSetVol 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
alSynSetVol \- set the target volume of the specified voice.
.SH SYNOPSIS
.nf
\f3
.Op c
#include <libaudio.h>
.sp .8v
void alSynSetVol(ALSynth *drvr, ALVoice *voice, s16 vol, ALMicroTime t);
.Op
\f1
.fi
.SH PARAMETERS
.TP 10
.I drvr
pointer to the synthesizer driver.
.TP
.I voice
pointer to the voice.
.TP
.I vol
the new target volume.
.TP
.I t
time to new target volume in microseconds.
.SH DESCRIPTION
Ramp exponentially to the target volume in
.I t
microseconds.
.I vol
can range from 0 to 0x7fff. Negative values are undefined.
.SH WARNING
alSynSetVol should only be called from within an ALVoiceHandler.
.SH SEE ALSO
.IR alSynSetPan (3P),
.IR alSynSetPitch (3P),
.IR alSynSetFXMix (3P),
.IR alSynStartVoiceParam (3P)