SND Demos

# Sound Demos

## Location

`$TwlSDK/build/demos/snd
$TwlSDK/build/demos.TWL/snd`

## Compilation

Move to the `$TwlSDK/build/demos/snd` (or `$TwlSDK/build/demos.TWL/snd`) directory and enter the following.

> `% make`

The compilation begin, and the SRL executable file and the NEF or TEF files with binary information are generated in `$TwlSDK/build/demos/fs/(sample name)/bin/(platform)/(target)/`.

> `$TwlSDK/build/demos/snd/(sample name)/bin/(platform)/(target)/`
> `$TwlSDK/build/demos.TWL/snd/(sample name)/bin/(platform)/(target)/`

For example:

> `$TwlSDK/build/demos/snd/channel/bin/ARM9-TS/Release/main.srl`

is the executable file for the `channel` demo.

## Execution

### For NITRO ROMs

If using IS-NITRO-DEBUGGER:

- Load and execute an NLF file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER using the `loadrun.exe` tool from a command line

If using IS-TWL-DEBUGGER:

- Load and execute an NLF file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line

### For TWL/NITRO Hybrid ROMs

If using IS-NITRO-DEBUGGER:

- Execute an SRL file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER using the `loadrun.exe` tool from a command line

If using IS-TWL-DEBUGGER:

- Load and execute a TLF file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line

### For TWL Limited ROMs

If using IS-TWL-DEBUGGER:

- Load and execute a TLF file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line

## Description

Name | Directory | Operation
--- | --- | ---
`channel` | `demos` | This is a simple demo that uses a channel for playback.
`stream` | `demos` | Uses a channel to play a stream while loading the waveform data in real time.
`synth` | `demos` | Creates and plays waveform data in real time without using waveform data.
`capture` | `demos` | Uses sound capture to add effects to the output sound.
`seq` | `demos` | Plays a sequence using a standard MIDI file (SMF). The sequence is processed on the ARM9 side.
`extraFunc` | `demos.TWL` | Uses various extended features for sound unique to the TWL.
`IIRFilterdemo` | `demos.TWL` | Applies the IIR filter, which is an extended sound feature only for TWL, to sound outputs.
`IIRFilterdemo-mic` | `demos.TWL` | Applies the IIR filter, which is an extended sound feature only for TWL, to microphone input.
`ignoreHWVolumeDemo` | `demos.TWL` | Plays sound with the specified timing at the specified volume.

## Operation

The SND library demos do not work on `ensata`.

## See Also

SND function list

## Revision History

2009/02/03 Added `ignoreHWVolumeDemo`.
2008/09/29 Added two IIR filter demos.
2008/07/15 Added a description of `extraFunc`.
2008/07/11 Changed descriptions to support TWL.
2005/04/12 Initial version.

CONFIDENTIAL