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.
-
SynthAudioClip(int, long)
- Constructor.
-
SynthAudioClip(int, long, double)
- Constructor.
-
loop()
-
-
play()
-
-
stop()
-
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
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
play
public synchronized void play()
loop
public synchronized void loop()
stop
public synchronized void stop()
All Packages Class Hierarchy This Package Previous Next Index
ACME Java ACME Labs