|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jniwrapper.win32.system.Beeper
A utility class for making debugging and error handling sounds.
| Field Summary | |
static int |
MB_ICONASTERISK
SystemAsterisk sound. |
static int |
MB_ICONEXCLAMATION
SystemExclamation sound. |
static int |
MB_ICONHAND
SystemHand sound. |
static int |
MB_ICONQUESTION
SystemQuestion sound. |
static int |
MB_OK
SystemDefault sound. |
| Constructor Summary | |
Beeper()
|
|
| Method Summary | |
static boolean |
beep(long frequency,
long duration)
|
static boolean |
messageBeep(int type)
Plays a predefined sound. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MB_ICONHAND
public static final int MB_ICONQUESTION
public static final int MB_ICONEXCLAMATION
public static final int MB_ICONASTERISK
public static final int MB_OK
| Constructor Detail |
public Beeper()
| Method Detail |
public static boolean beep(long frequency,
long duration)
frequency - frequency of the sound, in Hertz. Must be in the range between
37 through 32,767.duration - duration of the sound, in milliseconds.
LastError.getValue()public static boolean messageBeep(int type)
type - sound type, one of the MB_XXX values.
LastError.getValue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||