nn::snd::CTR::Voice::AppendWaveBuffer Member Function
void AppendWaveBuffer(
WaveBuffer * buffer
);
| Name | Description | |
|---|---|---|
| in | buffer | Pointer to a buffer information structure. |
Appends sample data information corresponding to a voice.
There is no upper limit to the number of sets of buffer information that this function can append. Even if a voice is in the playback state, it does not produce audio output if it has no registered sound source data. Likewise, even if sound source data has been registered in a voice, the voice does not produce audio output in the stopped state.
All of the following conditions must be met by the buffer memory region.
nn::os::GetDeviceMemoryAddress function.nn::os::ALLOCATE_OPTION_LINEAR as an allocator option).
The buffer region must always be written back from the cache to memory using the nn::snd::CTR::FlushDataCache function. To reduce the processing load, call nn::snd::CTR::FlushDataCache only when necessary.
CONFIDENTIAL