SND_StartSeq

C Specification

#include <nitro/snd.h>
void SND_StartSeq(
int playerNo,
const void* base,
u32 offset,
const SNDBankData* bank );

Arguments

playerNo The Player number. Takes a value between 0 and 15.
base The base address of the sequence data.
offset The start position offset for the sequence data.
bank This is the bank data pointer.

Return Values

None.

Description

Plays sequence.

Plays the sequence with the player of the player number playerNo. Any sequence that is already being played on that player will be forcibly stopped.

Sequence data is processed from the offset position (offset) from the base address (base).

For bank, bank, specify the bank which the sequence uses for sound generation. Furthermore, the waveform archive needs to be connected with SND_AssignWaveArc function beforehand.

If you need to change volume or other parameters at the same time that you start sequence playback, use SND_PrepareSeq instead of SND_StartSeq. If you call SND_StartPreparedSeq after changing the parameters, the parameter changes made up to that point are guaranteed to be reflected at the time the sequence begins playing.

Caution

This function is an ARM7 reserved function. After this function is called, processing occurs only after the command is issued with the SND_FlushCommand function.

When it is necessary to synchronize something with the completion of the process, first use SND_GetCurrentCommandTag to obtain the command tag immediately after calling this function. After the command is issued, use the command tag and call either the SND_IsFinishedCommandTag or SND_WaitForCommandProc function to confirm that the process has finished or to wait for it to complete.

See Also

SND_AssignWaveArc, SND_PrepareSeq, SND_FlushCommand, SND_GetCurrentCommandTag, SND_IsFinishedCommandTag, SND_WaitForCommandProc

Revision History

04/14/2005 Added description of SND_PrepareSeq
02/17/2005 Added note about ARM7 command execution
07/20/2004 Added the description regarding the combination of bank and waveform archive
07/01/2004 Initial version