nw::snd::SoundSystem::SetSoundFrameUserCallback Member Function

Syntax

#include <nw/snd/snd_SoundSystem.h>

static void SetSoundFrameUserCallback(
     SoundFrameUserCallback callback,
     uptr arg
);

Arguments

Name Description
in callback This callback function is called from the sound frame process.
in arg User argument passed to the callback function.

Return Values

None.

Description

Sets the callback function called from the sound frame process.

For example, mixed data (waveform data for the final stage created by the DSP) can be obtained by calling the nn::snd::GetMixedBusData function from the user callback set by this function.

You can also align the timing of parameter settings (such as the volume setting) for nn::snd::Voice independently obtained by the user by calling the function that makes the settings inside this function. Also see the demos/snd/withSdk sample demo.

If a sound thread has not been started with Initialize, this function will not work even if called.

See Also

Initialize
SoundFrameUserCallback
ClearSoundFrameUserCallback

Revision History

2010/10/27
Corrected an error (dmoes -> demos)
2010/06/14
Initial version.

CONFIDENTIAL