This sample demonstrates how to play, stop, and convert the pitch of 8-bit and 16-bit PCM audio.
None.
Input | Operation |
---|---|
A Button | Plays and stops 8-bit/16-bit PCM. |
+Control Pad Left/Right | Changes the pitch. |
+Control Pad Up/Down | Switches the audio. |
None.
When you run the demo, it displays operation instructions and the playback status and pitch of each voice.
The following log is also displayed in debugger output.
Loading wav files... rom:/yoshi_16bit_fs16kHz_1ch.wav (1ch, 16000Hz, 16-bit wav file) rom:/wihaho_16bit_fs22kHz_1ch.wav (1ch, 22050Hz, 16-bit wav file) rom:/fanfare_16bit_fs32kHz_1ch.wav (1ch, 32000Hz, 16-bit wav file) rom:/L-sin440Hz_R-sin660Hz_8bit_fs44kHz_2ch.wav (2ch, 44100Hz, 8-bit wav file)
CONFIDENTIAL