1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7 <title>ForEachSound</title> 8 </head> 9 <body> 10 <h1>nw::snd::SoundActor::ForEachSound Member Function</h1> 11 <h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition">#include <nw/snd/snd_SoundActor.h> 14 15template< class Function > 16Function ForEachSound( 17 Function function, 18 bool reverse = false 19); 20</pre> 21 </div> 22 <h2>Template Arguments</h2> 23 <div class="section"> 24 <table class="arguments"> 25 <thead> 26 <tr> 27 <th>Name</th> 28 <td>Description</td> 29 </tr> 30 </thead> 31 <tr> 32 <th>Function</th> 33 <td>Type of function pointer or function object.</td> 34 </tr> </table> 35 </div> 36 <h2>Arguments</h2> 37 <div class="section"> 38 <table class="arguments"> 39 <thead> 40 <tr> 41 <td width="15" /> 42 <th>Name</th> 43 <td>Description</td> 44 </tr> 45 </thead> 46 <tr> 47 <td>in</td> 48 <th>function</th> 49 <td>Function pointer or function object</td> 50 </tr> 51 <tr> 52 <td>in</td> 53 <th>reverse</th> 54 <td>Specify TRUE to reverse the processing order.</td> 55 </tr> </table> 56 </div> 57 <h2>Return Values</h2> 58 <div class="section">Function pointer or function object specified as an argument </div> 59 <h2>Description</h2> 60 <div class="section"> 61 <p>Performs processing for all sounds that the actor is currently playing.</p><p>Call function(nw::snd::SoundHandle& handle) for all sounds being played by the actor.</p><p>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.</p><p>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.</p><p>A function pointer or a function object is passed to function.</p></div> 62 <h2>Revision History</h2> 63 <div class="section"> 64 <dl class="history"> 65 <dt>2010/02/23</dt> 66 <dd>Initial version.<br /> 67 </dd> 68 </dl> 69 </div> 70 <hr><p>CONFIDENTIAL</p></body> 71</html>