alCSPGetTempo (function)

alCSPGetTempo, n_alCSPGetTempo

Returns the tempo of the current sequence


#include <libaudio.h>     /* libaudio.h */
s32 alCSPGetTempo(    ALCSPlayer *seqp);
#include <n_libaudio.h>     /* n_libaudio.h */
s32 n_alCSPGetTempo(N_ALCSPlayer *seqp);


Pointer to the compressed MIDI sequence player


alCSPGetTempo returns the tempo at the end of the last call to alAudioFrame, in microseconds per quarter note, of the target sequence. Because messages generated by alCSPSetTempo are not processed until the next call to alAudioFrame, multiple calls to alCSPGetTempo 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

alCSPSetTempo, alCSeqPlayer

Revision History

1999/04/30 Changed Format