alCSPGetChlProgram.3p
886 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 alCSPGetChlProgram 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
alCSPGetChlProgram \- returns the MIDI program number assigned to a MIDI channel.
.SH SYNOPSIS
.nf
\f3
.Op c
#include <libaudio.h>
.sp .8v
s32 alCSPGetChlProgram(ALCSPlayer *seqp, u8 chan);
.Op
\f1
.fi
.SH PARAMETERS
.TP 10
.B seqp
pointer to the compressed MIDI sequence player.
.TP
.B chan
specifies which channel to return the program from.
.SH DESCRIPTION
alCSPGetChlProgram returns the MIDI program number assigned to the (zero
based) MIDI channel specified in
.I chan.
It returns -1 if not found.
Because messages generated by
.B alCSPSetChlProgram
are not processed until the next call of
.B alAudioFrame,
a call to
.B alCSPSetChlProgram
followed by a call to
.B alCSPGetChlProgram
within the same frame will not reflect the new value.
.SH SEE ALSO
alCSPSetChlProgram(3P),
alCSeqPlayer(3P)