Package ui.sound

Class Beep

java.lang.Object
ui.sound.Beep

public class Beep extends Object
This implements a simple BEEP interface. It produces the BEEP via a SourceDataLine. BEEP duration,pitch1,pitch2,interval,step

---- The rest of the QL beep parameters are ignored ! The sound is played via an independent thread.

  • Constructor Details

    • Beep

      public Beep(int percentage)
      Creates the object, setting up a sourcedataline.
      Parameters:
      percentage - the volumne in percent, from 100 = loudest to 0 = no beep.
    • Beep

      public Beep()
      Creates a simple beep object, with volume set at 100 %.
  • Method Details

    • setVolume

      public final void setVolume(int percentage)
      Sets the sound volume.
      Parameters:
      percentage - the volume, from 0 (no sound) to 100 (loudest). Anything exceeding the limit will be set to the limit.
    • killSound

      public void killSound(MC68000Cpu cpu)
      Kills the sound.
      Parameters:
      cpu - cpu used. The SMSQ/E beeping system variable will be set to 0.
    • play

      public void play(MC68000Cpu cpu)
      Plays the sound. The sound to be played is in the list starting at (A3). Any BEEP already playing is killed first.
      Parameters:
      cpu - cpu used.