nw::snd::SoundSystem::SetSoundFrameUserCallback Member Function#include <nw/snd/snd_SoundSystem.h>
static void SetSoundFrameUserCallback(
SoundFrameUserCallback callback,
uptr arg
);
| Name | Description | |
|---|---|---|
| in | callback | This callback function is called from the sound frame process. |
| in | arg | User argument passed to the callback function. |
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.
CONFIDENTIAL