public interface ISpeaker
Modifier and Type | Method and Description |
---|---|
int |
getVolume()
• Returns the currently stored value for the default volume.
|
void |
pause(int period)
• Plays a pause.
|
void |
playBeep()
• Plays a beep.
|
void |
playBeepSequence()
• Plays a beep sequence.
|
void |
playBeepSequenceUp()
• Plays an upward beep sequence.
|
void |
playBuzz()
• Plays a buzz.
|
void |
playNote(ESound sound,
int frequency,
int period)
• Plays a tone with a given sound characteristics.
|
void |
playTone(int frequency,
int period)
• Plays a tone.
|
void |
playTone(int frequency,
int period,
int volume)
• Plays a tone.
|
void |
playTwoBeeps()
• Plays two beeps.
|
void |
setVolume(int volume)
• Sets the default volume to the given value.
|
int getVolume()
void pause(int period)
ITimer.wait(int)
.period
- duration of the pause (in ms)void playBeep()
void playBeepSequence()
void playBeepSequenceUp()
void playBuzz()
void playNote(ESound sound, int frequency, int period)
sound
- the sound characteristics of the tonefrequency
- frequency of the toneperiod
- duration of the tone (in ms)ESound
void playTone(int frequency, int period)
frequency
- frequency of the toneperiod
- duration of the tone (in ms)void playTone(int frequency, int period, int volume)
frequency
- frequency of the toneperiod
- duration of the tone (in ms)volume
- relative volume to play the tonevoid playTwoBeeps()
void setVolume(int volume)
volume
- the new value for the default volume