alCSPSetChlVol (function)

alCSPSetChlVol, n_alCSPSetChlVol

Sets the volume for the given MIDI channel

Syntax

#include <libaudio.h>     /* libaudio.h */

void alCSPSetChlVol(    ALCSPlayer *seqp, u8 chan, u8 vol);
#include <n_libaudio.h>     /* n_libaudio.h */

void n_alCSPSetChlVol(N_ALCSPlayer *seqp, u8 chan, u8 vol);

Arguments

seqp
Pointer to compressed MIDI sequence player

chan
Target (0 based) MIDI channel

vol
New volume for the MIDI channel

Description

alCSPSetChlVol sets the volume for the given MIDI channel. A value of 127 is full volume, and 0 is off.

Subsequent volume controllers (Cntrl 7) in the sequence will override the effect of this call.

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

Note

In addition to channel volume, the sequence player maintains an overall sequence volume that can be set and cleared by calling the alCSPGetVol and alCSPSetVol functions.

See Also

alCSPGetChlVol, alCSPGetVol, alCSPSendMidi, and alCSeqPlayer

Revision History

1999/04/30 Changed Format