One-shot sound effects from WAV files — the wav2brr pipeline. More...
#include <snes.h>#include <snes/audio.h>#include <snes/input.h>#include <snes/text.h>#include "res/blip.h"#include "res/coin.h"Macros | |
| #define | SMP_BLIP 0 |
| #define | SMP_COIN 1 |
Functions | |
| int | main (void) |
One-shot sound effects from WAV files — the wav2brr pipeline.
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.md ("One-shot samples from WAV") and tools/wav2brr for the converter.
Init order: textModeInit (display), audioInit, load samples, setScreenOn. Modules: console, dma, audio, input, background, text.
| #define SMP_BLIP 0 |
| #define SMP_COIN 1 |
| int main | ( | void | ) |