sampled
Class ConstantGenerator

java.lang.Object
  extended by sampled.Synthesizer
      extended by sampled.ConstantGenerator
All Implemented Interfaces:
AudioSource

public class ConstantGenerator
extends Synthesizer


Field Summary
 
Fields inherited from class sampled.Synthesizer
DEFAULT_SAMPLE_RATE
 
Constructor Summary
ConstantGenerator()
           
ConstantGenerator(double constant)
           
ConstantGenerator(int duration)
           
ConstantGenerator(int duration, double constant)
           
 
Method Summary
 double getConstant()
           
 void setConstant(double constant)
           
 void tearDown()
          Tear down the AudioSource (i.e.
 java.lang.String toString()
          String representation of the actual synthesizer
 
Methods inherited from class sampled.Synthesizer
getPreEmphasis, getSampleRate, getSleepTime, isBlockingSource, main, read, setBlocking, setPreEmphasis, setSleepTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantGenerator

public ConstantGenerator()

ConstantGenerator

public ConstantGenerator(double constant)

ConstantGenerator

public ConstantGenerator(int duration)

ConstantGenerator

public ConstantGenerator(int duration,
                         double constant)
Method Detail

getConstant

public double getConstant()

setConstant

public void setConstant(double constant)

tearDown

public void tearDown()
              throws java.io.IOException
Description copied from interface: AudioSource
Tear down the AudioSource (i.e. release file handlers, etc)

Throws:
java.io.IOException

toString

public java.lang.String toString()
Description copied from class: Synthesizer
String representation of the actual synthesizer

Specified by:
toString in interface AudioSource
Specified by:
toString in class Synthesizer