#include <nw/snd/snd_SoundActor.h>
template< class Function >
Function ForEachSound(
Function function,
bool reverse = false
);
| Name | Description |
|---|---|
| Function | Type of function pointer or function object. |
| Name | Description | |
|---|---|---|
| in | function | Function pointer or function object |
| in | reverse | Specify TRUE to reverse the processing order. |
Performs processing for all sounds that the actor is currently playing.
Call function(nw::snd::SoundHandle& handle) for all sounds being played by the actor.
The sound handle associated with the played back sound, given by handle, is passed to function. This is a temporary handle, so this handle cannot be used again later.
function is called to play back sounds from the oldest to the newest. If TRUE is specified for reverse, the function is called to play back sonds from the newest to the oldest.
A function pointer or a function object is passed to function.
CONFIDENTIAL