org.jscience.media.audio.dsp.processors
Class Distortion

java.lang.Object
  extended by org.jscience.media.audio.dsp.AbstractAudio
      extended by org.jscience.media.audio.dsp.processors.Distortion
All Implemented Interfaces:
Named

public class Distortion
extends AbstractAudio

DOCUMENT ME!


Field Summary
 
Fields inherited from class org.jscience.media.audio.dsp.AbstractAudio
ALLTYPES, MONITOR, next, NOTYPE, previous, PROCESSOR, SAMPLEBUFFERSIZE, SINK, SOURCE
 
Constructor Summary
Distortion()
          Creates a new Distortion object.
 
Method Summary
 int getSamples(short[] buffer, int length)
          DOCUMENT ME!
 void setGain(double gain)
          DOCUMENT ME!
 void setThreshold(int threshold)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.audio.dsp.AbstractAudio
doReset, equals, getByPass, getName, getNumberOfChannels, getSamplingRate, hexo, hexo, hexo, hexo, minMaxChannels, minMaxSamplingRate, negotiateNumberOfChannels, negotiateSamplingRate, o, propagateReset, reset, setByPass, setChannelsRecursive, setNumberOfChannels, setSamplingRate, setSamplingRateRecursive, toString, typeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Distortion

public Distortion()
Creates a new Distortion object.

Method Detail

setThreshold

public void setThreshold(int threshold)
DOCUMENT ME!

Parameters:
threshold - DOCUMENT ME!

setGain

public void setGain(double gain)
DOCUMENT ME!

Parameters:
gain - DOCUMENT ME!

getSamples

public int getSamples(short[] buffer,
                      int length)
DOCUMENT ME!

Specified by:
getSamples in class AbstractAudio
Parameters:
buffer - DOCUMENT ME!
length - DOCUMENT ME!
Returns:
DOCUMENT ME!