public class Downsampler
extends java.lang.Object
Constructor and Description |
---|
Downsampler() |
Modifier and Type | Method and Description |
---|---|
static short[] |
downsample(short[] inSamples,
int srIn,
int srOut)
Downsamples the given audio clip from the given input sample rate to the given output sample rate.
|
public static short[] downsample(short[] inSamples, int srIn, int srOut)
inSamples
- the clip to down sample - one sample per elementsrIn
- the sample rate of the given clipsrOut
- the sample to downsample to