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 - SimplePlayer Demo</h1> 12 13<h2>Description</h2> 14 15<div class="section"> 16<p>This sample demonstrates how to play, stop, and convert the pitch of 8-bit and 16-bit PCM audio.</p> 17</div> 18 19<h2>Required Environment</h2> 20 21<div class="section"> 22<p>None.</p> 23</div> 24 25<h2>How to Use</h2> 26 27<div class="section"> 28 <table> 29 <thead> 30 <tr> 31<th>Input</th> 32<th>Operation</th> 33 </tr> 34 </thead> 35 <tr> 36<td>A Button</td> 37<td>Plays and stops 8-bit/16-bit PCM.</td> 38 </tr> 39 <tr> 40<td>+Control Pad Left/Right</td> 41<td>Changes the pitch.</td> 42 </tr> 43 <tr> 44<td>+Control Pad Up/Down</td> 45<td>Switches the audio.</td> 46 </tr> 47 </table> 48</div> 49 50<h2>Notes</h2> 51 52<div class="section"> 53<p>None.</p> 54</div> 55 56<h2>Execution Procedure</h2> 57 58<div class="section"> 59<p>When you run the demo, it displays operation instructions and the playback status and pitch of each voice.</p> 60 <p><img src="Fig/SimplePlayer.png"></p> 61<p>The following log is also displayed in debugger output.</p> 62 <pre class="code">Loading wav files... 63rom:/yoshi_16bit_fs16kHz_1ch.wav (1ch, 16000Hz, 16-bit wav file) 64rom:/wihaho_16bit_fs22kHz_1ch.wav (1ch, 22050Hz, 16-bit wav file) 65rom:/fanfare_16bit_fs32kHz_1ch.wav (1ch, 32000Hz, 16-bit wav file) 66rom:/L-sin440Hz_R-sin660Hz_8bit_fs44kHz_2ch.wav (2ch, 44100Hz, 8-bit wav file)</pre> 67</div> 68 69<h2>Revision History</h2> 70 71<div class="section"> 72 <dl class="history"> 73 <dt>2011/03/24</dt> 74<dd>Added support for applets, and modified How to Use and the screen display.</dd> 75 <dt>2011/02/02</dt> 76<dd>Initial version.</dd> 77 </dl> 78</div> 79 80 81<hr><p>CONFIDENTIAL</p></body> 82</html>