nw::snd::SoundActor::ForEachSound Member Function

Syntax

#include <nw/snd/snd_SoundActor.h>
template< class Function >
Function ForEachSound(
     Function function,
     bool reverse = false
);

Template Arguments

Name Description
Function Type of function pointer or function object.

Arguments

Name Description
in function Function pointer or function object
in reverse Specify TRUE to reverse the processing order.

Return Values

Function pointer or function object specified as an argument

Description

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 sounds from the newest to the oldest.

A function pointer or a function object is passed to function.

Revision History

2010/02/23
Initial version.

CONFIDENTIAL