alSndpSetVol.3p
746 Bytes
.TH alSndpSetVol 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
alSndpSetVol \- set the volume of the current target sound
.SH SYNOPSIS
.nf
\f3
.Op c
#include <libaudio.h>
.sp .8v
void alSndpSetVol(ALSndPlayer *sndp, s16 vol);
.Op
\f1
.fi
.SH PARAMETERS
.TP 10
.I sndp
pointer to a sound player.
.TP
.I vol
volume. Maximum volume is 32767. Volume should never be negative.
.SH DESCRIPTION
Set the volume of the current target sound.
The target sound should be set with a call to
.IR alSndpSetSound(3P).
If the sound is playing
the volume will be adjusted. If the sound is not playing this call
will effect the volume of the sound when it is played.
.SH SEE ALSO
.IR alSndpSetPitch (3P),
.IR alSndpSetPan (3P),
.IR alSndpSetFXmix (3P)