net.jinx.audio.synth
Class Mixer

java.lang.Object
  extended by net.jinx.audio.synth.mix.AbstractMixer
      extended by net.jinx.audio.synth.Mixer
All Implemented Interfaces:
SampleProcessor

public class Mixer
extends AbstractMixer


Constructor Summary
Mixer()
           
 
Method Summary
 void addSource(SampleProcessor p)
           
 void addSource(SampleProcessor p, double gain)
           
protected  void mix(java.nio.DoubleBuffer dest, java.nio.DoubleBuffer intermediate)
           
protected  void postMix(java.nio.DoubleBuffer dest, int buffersMixed)
           
 
Methods inherited from class net.jinx.audio.synth.mix.AbstractMixer
getFormat, isSource, process, setFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mixer

public Mixer()
Method Detail

addSource

public void addSource(SampleProcessor p,
                      double gain)

addSource

public void addSource(SampleProcessor p)
Overrides:
addSource in class AbstractMixer

mix

protected void mix(java.nio.DoubleBuffer dest,
                   java.nio.DoubleBuffer intermediate)
Specified by:
mix in class AbstractMixer

postMix

protected void postMix(java.nio.DoubleBuffer dest,
                       int buffersMixed)
Specified by:
postMix in class AbstractMixer