When you want to play sound effects or start background music, you do so via the wiiSound object.
var sound = new wiiSound();
| Member Name | Discussion |
|---|---|
sound.playSE(effect) |
Plays the sound effect designated by effect. See Effects for further information. |
sound.playBGM() |
Plays the Wii Shop Channel’s well-known theme. |
There are 13 available sound effects to play. You specify an effect index as the effect.
The effect names are derived from their listing within IplSound.brsar, such as WIPL_SE_CHAR_DELETE_ERROR.
| Index | Sound Effect | Discussion |
|---|---|---|
| 1 | "Push" | Seemingly silent. |
| 2 | Hover/Target | The sound played when hovering over buttons. |
| 3 | "Decide"/Select | A success-like sound, played upon button selection. |
| 4 | Cancel | A sound played when pressing the Back button. |
| 5 | Choice Change | The sound played when selecting another option in a ratio menu. |
| 6 | Error | A short sound designating an error. Internally called WIPL_SE_CHAR_DELETE_ERROR, it appears to be the same effect from the Wii's keyboard. |
| 7 | Add Point | An effect played upon successful point addition. |
| 8 | Copy Finished | A success sound played upon download completion. |
| 9 | Small Mario Jump | A small jump effect. |
| 10 | Large Mario Jump | A larger jump sound effect. |
| 11 | Fire Ball | The expected fire ball effect. |
| 12 | Coin | A coin hit effect. |
| 13 | Hit Block | The hit block sound effect from various Mario games. |
| 14 | Copying | Something very close to the existing Mario jump sounds. |
| 15 | Loading | The loading sound displayed with the spinner. |