PlaySound Resource#, ampScale, Flags
Description
The PlaySound statement allows you to play short pre recorded sounds in your program. It can only be used on Palm OS 5.0 and later. Resource# is the resource number in your project. The sound must be in wav format and be less that 64k. Test the sounds on the device you want to use carefully: 16 bit mono, 8khz PCM encoded sound seems to work well. Add sounds to your project by doing "Add Resource", then setting the Type of the resource to 'wave'. AmpScale is the volume. The setting is from 0 to 32767. Flags determine how the sound plays. 0 means do not continue until the sound stops playing; 1 means to keep processing while the sound plays. See the sample SoundTest.prj in the Samples folder.
Example
PlaySound 1004, 32767, 1