1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 4<head> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6 <meta http-equiv="Content-Style-Type" content="text/css" /> 7 <link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 8</head> 9<body> 10 11<h1>snd - WaveBufferOperator Demo</h1> 12 13<h2>Description</h2> 14 15<div class="section"> 16 <p> 17This sample operates buffers during stream playback using <CODE>DeleteWaveBuffer</CODE> and <CODE>pdateWaveBuffer</CODE> functions. 18 </p> 19</div> 20 21<h2>Required Environment</h2> 22 23<div class="section"> 24<p>None.</p> 25</div> 26 27<h2>How to Use</h2> 28 29<div class="section"> 30 <table> 31 <thead> 32 <tr> 33<th>Input</th> 34<th>Operation</th> 35 </tr> 36 </thead> 37 <tr> 38<td>A Button</td> 39<td>Inverts the loopFlag of the WaveBuffer that is currently playing.</td> 40 </tr> 41 <tr> 42<td>L and A Buttons</td> 43<td>Inverts the loopFlag of the next WaveBuffer. </td> 44 </tr> 45 <tr> 46<td>R and A Buttons</td> 47<td>Cuts sample length of all WaveBuffers into half.</td> 48 </tr> 49 <tr> 50<td>B Button</td> 51<td>Performs DeleteWaveBuffer six times consecutively from the WaveBuffer currently playing.</td> 52 </tr> 53 <tr> 54<td>X Button</td> 55<td>Starting from the next WaveBuffer, calls DeleteWaveBuffer four times skipping every other WaveBuffer.</td> 56 </tr> 57 <tr> 58<td>Y Button</td> 59<td>Starting from the WaveBuffer that follows next WaveBuffer, calls DeleteWaveBuffer three times skipping two buffers ahead each time.</td> 60 </tr> 61 </table> 62</div> 63 64<h2>Notes</h2> 65 66<div class="section"> 67<p>Noise may occur using R and A Buttons, and B Button.</p> 68</div> 69 70<h2>Execution Procedure</h2> 71 72<div class="section"> 73<p>When you run the demo, it displays operation instructions and the status and loopFlag of each WaveBuffer.</p> 74 <p><img src="Fig/WaveBufferOperator.png"></p> 75<p>The following log is also displayed in debugger output.</p> 76 <pre class="code">Loading wave files... 77rom:/261.wav (1ch, 32728Hz, 16-bit wav file) 78rom:/277.wav (1ch, 32728Hz, 16-bit wav file) 79rom:/293.wav (1ch, 32728Hz, 16-bit wav file) 80rom:/311.wav (1ch, 32728Hz, 16-bit wav file) 81rom:/329.wav (1ch, 32728Hz, 16-bit wav file) 82rom:/349.wav (1ch, 32728Hz, 16-bit wav file) 83rom:/369.wav (1ch, 32728Hz, 16-bit wav file) 84rom:/391.wav (1ch, 32728Hz, 16-bit wav file) 85rom:/415.wav (1ch, 32728Hz, 16-bit wav file) 86rom:/440.wav (1ch, 32728Hz, 16-bit wav file) 87rom:/466.wav (1ch, 32728Hz, 16-bit wav file) 88rom:/493.wav (1ch, 32728Hz, 16-bit wav file)</pre> 89</div> 90 91<h2>Revision History</h2> 92 93<div class="section"> 94 <dl class="history"> 95 <dt>2011/06/10</dt> 96<dd>Initial version.</dd> 97 </dl> 98</div> 99 100 101<hr><p>CONFIDENTIAL</p></body> 102</html>