alSndpAllocate.3p
687 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
.TH alSndpAllocate 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
alSndpAllocate \- allocate a sound to a sound player
.SH SYNOPSIS
.nf
\f3
.Op c
#include <libaudio.h>
.sp .8v
ALSndId alSndpAllocate(ALSndPlayer *sndp, ALSound *sound);
.Op
\f1
.fi
.SH PARAMETERS
.TP 10
.I sndp
pointer to a sound player.
.TP
.I sound
pointer to a sound.
.SH DESCRIPTION
alSndpAllocate allocates a
.I sound
to a sound player,
.I sndp.
If the allocation is successful a sound identifier, which should be greater
than or equal to zero, is returned. If the sound player does not have space for
the new sound, -1 is returned.
.SH SEE ALSO
.IR alSndpNew (3P),
.IR alSndpDeallocate (3P)