nw::snd::SequenceUserprocCallback Type

Syntax

#include <nw/snd/snd_SequenceSoundPlayer.h>
typedef void(* nw::snd::SequenceUserprocCallback)(u16 procId, SequenceUserprocCallbackParam *param, void *arg);

Arguments

Name Description
in procId The procedure ID specified by sequence data.
in param A parameter that can be used inside the callback.
in arg The user argument

Description

The callback of a user procedure that can be used by sequence sounds.

This callback is invoked by the userproc command in the sequence data. It is invoked from the sound thread during the frame in which the userproc command was processed.

The procId argument is passed the value that was specified as a parameter to the sequence data's userproc command.

The param argument is a parameter that can be used within the callback. The value set as data can be accessed. Overwrite this value to apply it to sound data.

For details on the userproc command, see the Sequence Data Manual.

See Also

SoundArchivePlayer::SetSequenceUserprocCallback, SequenceUserprocCallbackParam


CONFIDENTIAL