|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjosx.platform.rcx.Sound
RCX sound routines.
Method Summary | |
static void |
beep()
Beeps once. |
static void |
beepSequence()
Downward tones. |
static void |
buzz()
Low buzz. |
static void |
playTone(int aFrequency,
int aDuration)
Plays a tone, given its frequency and duration. |
static void |
systemSound(boolean aQueued,
int aCode)
Play a system sound. |
static void |
twoBeeps()
Beeps twice. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Method Detail |
public static void systemSound(boolean aQueued, int aCode)
aCode | Resulting Sound |
---|---|
0 | short beep |
1 | double beep |
2 | descending arpeggio |
3 | ascending arpeggio |
4 | long, low beep |
5 | quick ascending arpeggio |
public static void beep()
public static void twoBeeps()
public static void beepSequence()
public static void buzz()
public static void playTone(int aFrequency, int aDuration)
aFrequency
- The frequency of the tone in Hertz (Hz).aDuration
- The duration of the tone, in centiseconds. Value is truncated at 256 centiseconds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |