tinyvm.rcx
Class Sound

java.lang.Object
  |
  +--tinyvm.rcx.Sound

public class Sound
extends Object

RCX sound routines.


Method Summary
static void beep()
          Beeps once.
static void beepSequence()
          Beeps twice.
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
getClass, toString
 

Method Detail

systemSound

public static void systemSound(boolean aQueued,
                               int aCode)
Play a system sound.
aCodeResulting Sound
0short beep
1double beep
2descending arpeggio
3ascending arpeggio
4long, low beep
5quick ascending arpeggio

beep

public static void beep()
Beeps once.
Parameters:
aQueued - Whether the sound is queued.

twoBeeps

public static void twoBeeps()
Beeps twice.
Parameters:
aQueued - Whether the sound is queued.

beepSequence

public static void beepSequence()
Beeps twice.
Parameters:
aQueued - Whether the sound is queued.

buzz

public static void buzz()
Low buzz.
Parameters:
aQueued - Whether the sound is queued.

playTone

public static void playTone(int aFrequency,
                            int aDuration)
Plays a tone, given its frequency and duration.