play

play();

The play method of the Sound class plays the sound stream contained in the receiver Sound object. In JADE thin client mode, this method always executes on the presentation client.

This method transfers the sound wave image from the receiver object to memory and creates a thread to play the sound asynchronously, allowing control to be returned to the application as soon as the sound has started playing. If the sound cannot be played, a message is logged in your JADE log file.

An exception is raised if this method is invoked from a server method.

See also the Application class playSound method, which plays the specified .wav file and returns when the sound file has been played, or the playSoundAsync method, which starts playing the specified .wav file and returns immediately.