alSeqpGetChlProgram.3p 896 Bytes
.TH alSeqpGetChlProgram 3P local "Silicon Graphics, Inc."

.SH NAME 
.upperok 
alSeqpGetChlProgram \- returns the MIDI program number assigned to a 
MIDI channel.

.SH SYNOPSIS
.nf
\f3
.Op c
#include <libaudio.h>
.sp .8v
s32	alSeqpGetChlProgram(ALSeqPlayer *seqp, u8 chan);
.Op
\f1
.fi
.SH PARAMETERS
.TP 10
.I seqp
pointer to Type 0 MIDI sequence player. 
.TP
.I chan
specifies which channel to return the program from.
.SH DESCRIPTION 
alSeqpGetChlProgram 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 
.I alSeqpSetChlProgram 
are not processed until the next call of 
.I alAudioFrame,
a call to 
.I alSeqpSetChlProgram
followed by a call to 
.I alSeqpGetChlProgram
within the same frame will not reflect the new value.

.SH SEE ALSO 
.IR alSeqpSetChlProgram (3P),
.IR alSeqPlayer (3P)