alCSPGetChlPan (function)

alCSPGetChlPan,  n_alCSPGetChlPan

Returns the pan position for the given MIDI channel


#include <libaudio.h>     /* libaudio.h */
ALPan alCSPGetChlPan(    ALCSPlayer *seqp, u8 chan);
#include <n_libaudio.h>     /* n_libaudio.h */
ALPan n_alCSPGetChlPan(N_ALCSPlayer *seqp, u8 chan);


Pointer to compressed MIDI sequence player

Target (0 based) MIDI channel


alCSPGetChlPan returns the pan position for the given MIDI channel. A value of 0 is hard left, 64 is center, and 127 is hard right. Because messages generated by the alCSPSetChlPan function are not processed until the next call to alAudioFrame, a call to alCSPSetChlPan followed by a call to alCSPGetChlPan 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

alCSPSetChlPan, alCSeqPlayer

Revision History

1999/04/30 Changed Format