Wii Speak (PMIC) Sample Demos

Location

$REVOLUTION_SDK_ROOT/build/demos/pmicdemo

Compilation

Move to the $REVOLUTION_SDK_ROOT/build/demos/pmicdemo directory and run make. An executable file (ELF file) is created below the path $REVOLUTION_SDK_ROOT/RVL/bin/demos/pmicdemo/.

Running the Demos

You need to configure DVDRoot before executing the demos. Specify the folder name $REVOLUTION_SDK_ROOT/dvddata as the DvdRoot argument of the SetNdEnv command.

Move to the $REVOLUTION_SDK_ROOT/RVL/bin/demos/pmicdemo/ directory and perform the following steps.

Description

pmic_simple A basic program to confirm the Wii Speak features. Operate the sample by following the onscreen instructions.

When the program runs, music plays from the TV speakers. The Wii Speak detects both the music and your voice. However, the music component is canceled out inside the microphone, and only your voice is sent to the Wii console. The data sent to the Wii console is stored in memory by default for a maximum of 10 seconds from the time the Wii Speak starts, and is played back from the speakers when the Wii Speak stops.

For audio data playback, the Wii console only converts the sampling rate from 16 kHz to 32 kHz.

Also, in addition to the onscreen operation instructions, the volume level of the voice data output from the Wii Speak to the Wii console is shown in real time with a meter. This level meter is implemented as follows.
  1. Get the output volume level (PMIC_LEVEL_SOUT) using the PMICGetLevelAsync function.
  2. The volume level obtained above are u16 linear values. This level is divided into 17 levels (one mute level and 16 sound levels) of 3-dB increments using a table (maxLevels[]).
  3. The 17 levels are shown onscreen as a meter.
See the source code for details on level meter implementation.
pmic_graphic Displays data obtained from the Wii Speak onscreen.

See Also

PMICGetLevelAsync

Revision History

2009/04/01 Revised description of pmic_simple.
2009/03/11 Revised description of pmic_simple.
2008/08/25 Added pmic_graphic.
2008/03/03 Changed the function reference format.
2008/01/25 Initial version.


CONFIDENTIAL