One-shot sound effects from WAV files, converted by the build.
The smallest "press a button, hear a sound" example, and a showcase of the settings-file build: res/blip.wav and res/coin.wav are plain PCM WAV files with a .wav.toml beside each (tool = "opensnes-sample"); the build converts them with opensnes-sample and links the .brr — no .brr is committed, they are generated on demand like a .pic from a .png.
See docs/tutorials/audio_samples.md ("One-shot samples from WAV").
- SNES Concepts
-
- What to Observe
- Press A for a blip, B for a coin; one press, one sound
- Modules Used
- console, dma, audio, input, background, text
- See also
- audio.h — audioLoadSample / audioPlaySample