Sound                                                                                                    Statement

 

SOUND freq as integer, duration as integer, amplitude as integer[, wait]

 

Description

Plays a sound through the Palm OS device speaker. Freq is the frequency in Hertz. Duration is the duration in milliseconds. Amplitude is the sound amplitude. Allowed values depend on the device. Values you can use are 0,2,4,8, 32 and 64. Wait sets the wait mode. If Wait is nsbWait, program execution is halted until the sound is completed. If Wait is nsbNoWait program execution proceeds while the sound is played. nsbNoWait is the default if neither is specified. As of Palm OS 3.5, wait is not implemented.

 

Example

Sound 1200, 1000, 2, nsbWait