All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.SynthAudioClip

java.lang.Object
   |
   +----Acme.SynthAudioClip

public class SynthAudioClip
extends Object
implements AudioClip
A synthesized audio clip.

Generates a synthetic audio tone of a specified frequency and duration.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o SynthAudioClip(int, long)
Constructor.
 o SynthAudioClip(int, long, double)
Constructor.

Method Index

 o loop()
 o play()
 o stop()

Constructors

 o SynthAudioClip
 public SynthAudioClip(int hz,
                       long millis,
                       double amplitude)
Constructor. Generates a single tone.

Parameters:
hz - the frequency of the tone
millis - the duration of the tone, in milliseconds
amplitude - the loudness of the tone, from 0 to 32767
 o SynthAudioClip
 public SynthAudioClip(int hz,
                       long millis)
Constructor. Generates a single tone, with default loudness.

Parameters:
hz - the frequency of the tone
millis - the duration of the tone, in milliseconds

Methods

 o play
 public synchronized void play()
 o loop
 public synchronized void loop()
 o stop
 public synchronized void stop()

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs