alSeqpGetVol (function)

alSeqpGetVol, n_alSeqpGetVol

Returns the overall sequence volume


#include <libaudio.h>     /* libaudio.h */
s16 alSeqpGetVol(    ALSeqPlayer *seqp);
#include <n_libaudio.h>     /* n_libaudio.h */
s16 n_alSeqpGetVol(N_ALSeqPlayer *seqp);


Pointer to the Type 0 MIDI sequence player


alSeqpGetVol returns the overall sequence volume that was active at the end of the last call to alAudioFrame. A value of 0x7fff indicates full scale, and a value of 0 indicates off. Negative values are not allowed.

Because messages generated by alSeqpSetVol are not processed until the next call of alAudioFrame, multiple calls to alSeqpGetVol 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.


Note that individual channels also have volume levels. You can get these volume levels by calling the alSeqpGetChlVol function.

See Also

alSeqpSetVol, alSeqpGetChlVol, alSeqPlayer

Revision History

1999/04/30 Changed Format