public class Beep
extends java.lang.Object
---- The rest of the beep parameters are ignored !
Constructor and Description |
---|
Beep()
Creates a simple beep object, with volume set at 100 %
|
Beep(int percentage)
Creates the object.
|
Modifier and Type | Method and Description |
---|---|
void |
killSound(MC68000Cpu cpu)
Kills the sound
|
void |
play(MC68000Cpu cpu)
Plays the sound.
|
void |
setVolume(int percentage)
Sets the sound volume.
|
public Beep(int percentage)
percentage
- the volumne in percent, from 100 = loudest to 0 = no beeppublic Beep()
public final void setVolume(int percentage)
percentage
- the volume, from 0 (no sound) to 100 (loudest).public void killSound(MC68000Cpu cpu)
cpu
- cpu usedpublic void play(MC68000Cpu cpu)
cpu
- cpu used