WSound is a value class to play a sound effect. It provides a
way to play an MP3 sound asynchonously (if the browser supports this). It
is intended as a simple way to play event sounds (not quite a media
The WSound class uses a
WMediaPlayer to play the sound (using
HTML <audio> or a flash player).
The following example creates a beep sound that will be repeated 3 times.