public class Sound extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BEEP_ALERT
This is a beep that would play if a popup alert box was displayed.
|
static int |
BEEP_DEFAULT |
static int |
BEEP_ERROR
This is a beep that would play if a popup error box was displayed.
|
static int |
BEEP_GUI |
static int |
BEEP_NONE
Calling beep with this value will have no effect.
|
static int |
BEEP_POPUP
This is a beep that would play if a popup menu was displayed.
|
static int |
BEEP_QUESTION
This is a beep that would play if a popup question was displayed.
|
static Object |
popupSound |
Modifier and Type | Method and Description |
---|---|
static void |
beep() |
static void |
beep(int beepType)
Play a beep.
|
static Object |
makeSoundClip(FormattedDataSource source)
A simple way to make a sound clip if it is supported by the VM.
|
static Object |
makeSoundClip(String source)
A simple way to make a sound clip if it is supported by the VM.
|
static Handle |
playSoundClip(Object clip)
Play a sound clip returned by makeSoundClip().
|
static void |
setupSounds()
Call this to force a startup of the Sounds.
|
public static final int BEEP_NONE
public static final int BEEP_DEFAULT
public static final int BEEP_GUI
public static final int BEEP_QUESTION
public static final int BEEP_ALERT
public static final int BEEP_ERROR
public static final int BEEP_POPUP
public static Object popupSound
public static void beep()
public static void setupSounds()
public static void beep(int beepType)
beepType
- one of the BEEP_XXX values.public static Object makeSoundClip(String source)
source
- the name of the sound.public static Object makeSoundClip(FormattedDataSource source)
source
- the source of the sound.