alCSPGetChlProgram (function)

alCSPGetChlProgram, n_alCSPGetChlProgram

Returns the MIDI program number assigned to a MIDI channel

Syntax

#include <libaudio.h>     /* libaudio.h */     
s32 alCSPGetChlProgram(    ALCSPlayer *seqp, u8 chan);
#include <n_libaudio.h>     /* n_libaudio.h */
s32 n_alCSPGetChlProgram(N_ALCSPlayer *seqp, u8 chan);

Arguments

seqp
Pointer to the compressed MIDI sequence player

chan
MIDI channel number returned from the target program

Description

alCSPGetChlProgram returns the MIDI program number assigned to the (0 based) MIDI channel specified in chan. It returns -1 if not found. Because messages generated by the alCSPSetChlProgram function are not processed until the next call of alAudioFrame, a call to alCSPSetChlProgram followed by a call to alCSPGetChlProgram within the same frame will not reflect the new value.

For details on n_audio library, see "Chapter 28: n_audio library" in the N64 Programming Manual.

See Also

alCSPSetChlProgram

Revision History

1999/04/30 Changed Format