alCSeqSetLoc (function)

Sets the current sequence location to play back within the compressed MIDI sequence


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

void alCSeqSetLoc(ALCSeq *seq, ALCSeqMarker *marker);


Pointer to the sequence

Pointer to the marker containing the new sequence location


alCSeqSetLoc sets the sequence player location to the location specified in the marker. You must ensure that the marker was previously initialized by using the alCSeqNewMarker or alCSeqGetLoc function.


Changing the location of the sequence does not revert the channel arguments (pan, volume, priority, FXMix) to the values that would exist if the sequence was played from the beginning to the new location. Channel arguments remain what they were prior to the alCSeqSetLoc call. Therefore, either embed controllers in the sequence to update the channel arguments or have the application make function calls to set the channel arguments.

See Also

alCSeq, alCSeqNewMarker, and alCSeqGetLoc

Revision History

1999/04/30 Changed Format