com.sun.media.sound
Class SoftLimiter

java.lang.Object
  extended by com.sun.media.sound.SoftLimiter
All Implemented Interfaces:
SoftAudioProcessor

public class SoftLimiter
extends java.lang.Object
implements SoftAudioProcessor

A simple look-ahead volume limiter with very fast attack and fast release. This filter is used for preventing clipping.

Author:
Karl Helgason

Constructor Summary
SoftLimiter()
           
 
Method Summary
 void globalParameterControlChange(int[] slothpath, long param, long value)
           
 void init(float samplerate, float controlrate)
           
 void processAudio()
           
 void processControlLogic()
           
 void setInput(int pin, SoftAudioBuffer input)
           
 void setMixMode(boolean mix)
           
 void setOutput(int pin, SoftAudioBuffer output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftLimiter

public SoftLimiter()
Method Detail

init

public void init(float samplerate,
                 float controlrate)
Specified by:
init in interface SoftAudioProcessor

setInput

public void setInput(int pin,
                     SoftAudioBuffer input)
Specified by:
setInput in interface SoftAudioProcessor

setOutput

public void setOutput(int pin,
                      SoftAudioBuffer output)
Specified by:
setOutput in interface SoftAudioProcessor

setMixMode

public void setMixMode(boolean mix)
Specified by:
setMixMode in interface SoftAudioProcessor

globalParameterControlChange

public void globalParameterControlChange(int[] slothpath,
                                         long param,
                                         long value)
Specified by:
globalParameterControlChange in interface SoftAudioProcessor

processAudio

public void processAudio()
Specified by:
processAudio in interface SoftAudioProcessor

processControlLogic

public void processControlLogic()
Specified by:
processControlLogic in interface SoftAudioProcessor