This is an old revision of the document!
.wav files can be included into your programs to produce sound.
The first thing you will want to do is to include the .wav file in your Make.sh. To do that nano into your make.sh and add the following:
echo echo Convert the WAV sounds echo wav2vircon Paddle-ball.wav -o Paddle-ball.vsnd || abort_build wav2vircon Brick-ball.wav -o Brick-ball.vsnd || abort_build wav2vircon Miss-ball.wav -o Miss-ball.vsnd || abort_build
Depending on the number of .wav files you have, you may have more or less instances where you are calling wav2vircon.
so it gets added when building, and also include it into your .xml file. Then in your Program you will want to include the audtio.h library and define the sound.
#include "audio.h" #define your_sound number
To use sound in your program you will want to reference the audio.h library using the C API reference http://www.vircon32.com/api.html
a simple function example
play_sound( your_sound );