alSeqpGetChlProgram (function)

alSeqpGetChlProgram, n_alSeqpGetChlProgram

Returns the MIDI program number assigned to a MIDI

Syntax

#include <libaudio.h>     /* libaudio.h */
s32 alSeqpGetChlProgram(    ALSeqPlayer *seqp, u8 chan);
#include <n_libaudio.h>     /* n_libaudio.h */
s32 n_alSeqpGetChlProgram(N_ALSeqPlayer *seqp, u8 chan);

Arguments

seqp
Pointer to Type 0 MIDI sequence player

chan
Channel that holds the program

Description

alSeqpGetChlProgram returns the MIDI program number assigned to the zero-based MIDI channel specified in chan. It returns -1 if no program is found.

Because messages generated by alSeqpSetChlProgram are not processed until the next call of alAudioFrame , a call to alSeqpSetChlProgram followed by a call to alSeqpGetChlProgram within the same frame will not reflect the new value.

For details on n_audio library, see the "Chapter 28 n_audio library" section of the programming manual.

See Also

alSeqpSetChlProgram

Revision History

1999/04/30 Changed Format