public class Resampler
extends java.lang.Object
Constructor and Description |
---|
Resampler() |
Modifier and Type | Method and Description |
---|---|
byte[] |
reSample(byte[] sourceData,
int bitsPerSample,
int sourceRate,
int targetRate)
Do resampling.
|
public byte[] reSample(byte[] sourceData, int bitsPerSample, int sourceRate, int targetRate)
sourceData
- The source data in bytesbitsPerSample
- How many bits represents one sample (currently supports max. bitsPerSample=16)sourceRate
- Sample rate of the source datatargetRate
- Sample rate of the target data