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 - AdpcmEncDec Demo</h1>
12
13<h2>Description</h2>
14
15<div class="section">
16<p>This is a sample of the DSP-ADPCM encoder and decoder.</p>
17    <p>
18This plays back a sine wave loop. See the documentation for the CTR-SDK Windows tool's <CODE>WaveCodecCtr.dll</CODE> module for details about loop playback of encoded data.
19    </p>
20</div>
21
22<h2>Required Environment</h2>
23
24<div class="section">
25    <p>None.</p>
26</div>
27
28<h2>How to Use</h2>
29
30<div class="section">
31    <table>
32        <thead>
33        <tr>
34            <th>Input</th>
35            <th>Operation</th>
36        </tr>
37        </thead>
38        <tr>
39<td>A Button.</td>
40<td>Quits the DSP-ADPCM encoder demo and starts the decoder demo.</td>
41        </tr>
42    </table>
43</div>
44
45<h2>Notes</h2>
46
47<div class="section">
48    <p>None.</p>
49</div>
50
51<h2>Execution Procedure</h2>
52
53<div class="section">
54    <p>
55Running the demo automatically starts the DSP-ADPCM encoder demo, and the following log is displayed as the debugger output.
56    </p>
57    <pre class="code">Demo Start
58[demo] start encoding pcm data...
59[demo] press button A to start adpcm decoder test
60rom:/sine.wav (1ch, 32768Hz, 16-bit wav file)
61[demo] finished encoding! nSamples(28800) LS(56) LLEN(28672) LE(28728)
62[demo] now start playing adpcm data...
63yn1(0) yn2(0) ps(9) LOOP yn1(-20417) yn2(-18716) ps(3)</pre>
64    <p>
65Pressing the A Button again starts the DSP-ADPCM decoder demo, and the following log is displayed as the debugger output.
66    </p>
67    <pre class="code">[demo] start decoding adpcm data...
68[demo] finished decoding!
69[demo] now start playing decoded pcm data...</pre>
70<p>There is no shutdown procedure. Stop execution in a timely manner.</p>
71</div>
72
73<h2>Revision History</h2>
74
75<div class="section">
76    <dl class="history">
77        <dt>2011/12/13</dt>
78<dd>Added explanation about loop playback and revised description of demos.</dd>
79        <dt>2011/02/02</dt>
80        <dd>Initial version.</dd>
81    </dl>
82</div>
83
84
85<hr><p>CONFIDENTIAL</p></body>
86</html>