1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../css/nitro.css">
8<TITLE>SND Demos</TITLE>
9</HEAD>
10<BODY>
11<H1>Sound Demos</H1>
12<H2>Location</H2>
13<P><CODE>$TwlSDK/build/demos/snd<BR> $TwlSDK/build/demos.TWL/snd</CODE></P>
14
15<H2>Compilation</H2>
16<P>Move to the <CODE>$TwlSDK/build/demos/snd</CODE> (or <CODE>$TwlSDK/build/demos.TWL/snd</CODE>) directory and enter the following.</P>
17<BLOCKQUOTE><CODE>% make</CODE></BLOCKQUOTE>
18<P>&nbsp; The compilation begin, and the SRL executable file and the NEF or TEF files with binary information are generated in <CODE>$TwlSDK/build/demos/fs/(sample name)/bin/(platform)/(target)/</CODE>.</P>
19<BLOCKQUOTE><CODE>$TwlSDK/build/demos/snd/(sample name)/bin/(platform)/(target)/</CODE><BR> <CODE>$TwlSDK/build/demos.TWL/snd/(sample name)/bin/(platform)/(target)/</CODE></BLOCKQUOTE>
20<P> For example:</P>
21<BLOCKQUOTE><CODE>$TwlSDK/build/demos/snd/channel/bin/ARM9-TS/Release/main.srl</CODE></BLOCKQUOTE>
22<P>is the executable file for the <CODE>channel</CODE> demo.</P>
23
24<H2>Execution</H2>
25<H3>For NITRO ROMs</H3>
26
27<P>If using IS-NITRO-DEBUGGER:</P>
28<UL>
29<LI>Load and execute an NLF file with IS-NITRO-DEBUGGER
30<LI>Execute an SRL file with IS-NITRO-DEBUGGER
31<LI>Execute an SRL file with IS-NITRO-DEBUGGER using the <CODE>loadrun.exe</CODE> tool from a command line
32</UL>
33<P>If using IS-TWL-DEBUGGER:</P>
34<UL>
35<LI>Load and execute an NLF file with IS-TWL-DEBUGGER
36<LI>Execute an SRL file with IS-TWL-DEBUGGER
37<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line
38</UL>
39<H3>For TWL/NITRO Hybrid ROMs</H3>
40<P>If using IS-NITRO-DEBUGGER:</P>
41<UL>
42<LI>Execute an SRL file with IS-NITRO-DEBUGGER
43<LI>Execute an SRL file with IS-NITRO-DEBUGGER using the <CODE>loadrun.exe</CODE> tool from a command line
44</UL>
45<P>If using IS-TWL-DEBUGGER:</P>
46<UL>
47<LI>Load and execute a TLF file with IS-TWL-DEBUGGER
48<LI>Execute an SRL file with IS-TWL-DEBUGGER
49<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line
50</UL>
51<H3>For TWL Limited ROMs</H3>
52<P>If using IS-TWL-DEBUGGER:</P>
53<UL>
54<LI>Load and execute a TLF file with IS-TWL-DEBUGGER
55<LI>Execute an SRL file with IS-TWL-DEBUGGER
56<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line
57</UL>
58
59<H2>Description</H2>
60<TABLE width="720">
61  <TBODY>
62    <TR>
63<TH>Name</TH>
64<TH>Directory</TH>
65<TH>Operation</TH>
66    </TR>
67    <TR>
68<TD width="187"><CODE>channel</CODE></TD>
69<TD><CODE>demos</CODE></TD>
70<TD width="525">This is a simple demo that uses a channel for playback.</TD>
71    </TR>
72    <TR>
73<TD width="187"><CODE>stream</CODE></TD>
74<TD><CODE>demos</CODE></TD>
75<TD width="525">Uses a channel to play a stream while loading the waveform data in real time.</TD>
76    </TR>
77    <TR>
78<TD width="187"><CODE>synth</CODE></TD>
79<TD><CODE>demos</CODE></TD>
80<TD width="525">Creates and plays waveform data in real time without using waveform data.</TD>
81    </TR>
82    <TR>
83<TD width="187"><CODE>capture</CODE></TD>
84<TD><CODE>demos</CODE></TD>
85<TD width="525">Uses sound capture to add effects to the output sound.</TD>
86    </TR>
87    <TR>
88<TD width="187"><CODE>seq</CODE></TD>
89<TD><CODE>demos</CODE></TD>
90<TD width="525">Plays a sequence using a standard MIDI file (SMF). The sequence is processed on the ARM9 side.</TD>
91    </TR>
92    <TR>
93<TD width="187"><CODE>extraFunc</CODE></TD>
94<TD><CODE>demos.TWL</CODE></TD>
95<TD width="525">Uses various extended features for sound unique to the TWL.</TD>
96    </TR>
97    <TR>
98<TD width="187"><CODE>IIRFilterdemo</CODE></TD>
99<TD><CODE>demos.TWL</CODE></TD>
100<TD width="525">Applies the IIR filter, which is an extended sound feature only for TWL, to sound outputs.</TD>
101    </TR>
102    <TR>
103<TD width="187"><CODE>IIRFilterdemo-mic</CODE></TD>
104<TD><CODE>demos.TWL</CODE></TD>
105<TD width="525">Applies the IIR filter, which is an extended sound feature only for TWL, to microphone input.</TD>
106    </TR>
107    <TR>
108<TD width="187"><CODE>ignoreHWVolumeDemo</CODE></TD>
109<TD><CODE>demos.TWL</CODE></TD>
110<TD width="525">Plays sound with the specified timing at the specified volume.</TD>
111    </TR>
112  </TBODY>
113</TABLE>
114
115<H2>Operation</H2>
116<P>The SND library demos do not work on <CODE>ensata</CODE>.</P>
117
118<H2>See Also</H2>
119<P><A href="../../snd/list_snd.html">SND function list</A></P>
120<H2>Revision History</H2>
121<P>
1222009/02/03 Added <CODE>ignoreHWVolumeDemo</CODE>.<BR> 2008/09/29 Added two IIR filter demos.<BR> 2008/07/15 Added a description of <CODE>extraFunc</CODE>.<BR> 2008/07/11 Changed descriptions to support TWL.<BR> 2005/04/12 Initial version.</P>
123<hr><p>CONFIDENTIAL</p></body>
124</HTML>