net.jinx.audio.synth.mix
Class AbstractMixer
java.lang.Object
net.jinx.audio.synth.mix.AbstractMixer
- All Implemented Interfaces:
- SampleProcessor
- Direct Known Subclasses:
- Add, Divide, Mixer, Multiply, Subtract
public abstract class AbstractMixer
- extends java.lang.Object
- implements SampleProcessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMixer
public AbstractMixer()
addSource
public void addSource(SampleProcessor p)
process
public void process(java.nio.DoubleBuffer sample)
- Specified by:
process
in interface SampleProcessor
mix
protected abstract void mix(java.nio.DoubleBuffer dest,
java.nio.DoubleBuffer intermediate)
postMix
protected abstract void postMix(java.nio.DoubleBuffer dest,
int buffersMixed)
setFormat
public boolean setFormat(SampleFormat fmt)
- Specified by:
setFormat
in interface SampleProcessor
getFormat
public SampleFormat getFormat()
- Specified by:
getFormat
in interface SampleProcessor
isSource
public boolean isSource()
- Specified by:
isSource
in interface SampleProcessor