public class Interpolate extends AbstractSignalProcessor<AudioBuffer,AudioBuffer>
MultirateFilters.Interpolator,
DecimatelastOut, signalProcessorSupport| Constructor and Description |
|---|
Interpolate()
Doubles the sample rate.
|
Interpolate(float targetSampleRate)
Creates a interpolate processor that attempts to interpolate
AudioBuffers
to the specified target sample rate. |
Interpolate(int factor)
Increases the sample rate by a given factor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getFactor() |
float |
getTargetSampleRate() |
int |
hashCode() |
protected AudioBuffer |
processNext(AudioBuffer buffer)
Processes the given input and returns some output.
|
void |
setFactor(int factor)
Increases the sample rate by the given factor.
|
void |
setTargetSampleRate(float targetSampleRate) |
String |
toString() |
connectTo, connectTo, connectTo, disconnectFrom, flush, getConnectedProcessors, getConnectedSource, getId, getOutput, process, read, reset, setIdpublic Interpolate(int factor)
factor - sample rate increase factorpublic Interpolate()
public Interpolate(float targetSampleRate)
AudioBuffers
to the specified target sample rate.
Note that not all sample rates are supported. The ratio between sample rates
should be an integer.
If the target sample rate is not supported, an IOException is thrown
when processing the first buffer.targetSampleRate - target sample ratepublic int getFactor()
setFactor(int)public float getTargetSampleRate()
public void setTargetSampleRate(float targetSampleRate)
targetSampleRate - target sample ratepublic void setFactor(int factor)
factor - sample rate factorIllegalArgumentException - not all factors are supportedcom.tagtraum.jipes.math.MultirateFilters.Interpolator#Interpolator(int)protected AudioBuffer processNext(AudioBuffer buffer) throws IOException
AbstractSignalProcessorprocessNext in class AbstractSignalProcessor<AudioBuffer,AudioBuffer>buffer - input guaranteed not to be null.IOException - if an IO error occursCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.