snd - WaveBufferOperator Demo

Description

This sample operates buffers during stream playback using DeleteWaveBuffer and pdateWaveBuffer functions.

Required Environment

None.

How to Use

Input Operation
A Button Inverts the loopFlag of the WaveBuffer that is currently playing.
L and A Buttons Inverts the loopFlag of the next WaveBuffer.
R and A Buttons Cuts sample length of all WaveBuffers into half.
B Button Performs DeleteWaveBuffer six times consecutively from the WaveBuffer currently playing.
X Button Starting from the next WaveBuffer, calls DeleteWaveBuffer four times skipping every other WaveBuffer.
Y Button Starting from the WaveBuffer that follows next WaveBuffer, calls DeleteWaveBuffer three times skipping two buffers ahead each time.

Notes

Noise may occur using R and A Buttons, and B Button.

Execution Procedure

When you run the demo, it displays operation instructions and the status and loopFlag of each WaveBuffer.

The following log is also displayed in debugger output.

Loading wave files...
rom:/261.wav (1ch, 32728Hz, 16-bit wav file)
rom:/277.wav (1ch, 32728Hz, 16-bit wav file)
rom:/293.wav (1ch, 32728Hz, 16-bit wav file)
rom:/311.wav (1ch, 32728Hz, 16-bit wav file)
rom:/329.wav (1ch, 32728Hz, 16-bit wav file)
rom:/349.wav (1ch, 32728Hz, 16-bit wav file)
rom:/369.wav (1ch, 32728Hz, 16-bit wav file)
rom:/391.wav (1ch, 32728Hz, 16-bit wav file)
rom:/415.wav (1ch, 32728Hz, 16-bit wav file)
rom:/440.wav (1ch, 32728Hz, 16-bit wav file)
rom:/466.wav (1ch, 32728Hz, 16-bit wav file)
rom:/493.wav (1ch, 32728Hz, 16-bit wav file)

Revision History

2011/06/10
Initial version.

CONFIDENTIAL