public class DefaultAudioResampler extends java.lang.Object implements AudioResampler
AudioResampler that delegates to appropriate classes
based on input and output size.DOWNSAMPLE, PASSTHROUGH, UPSAMPLE| Constructor and Description |
|---|
DefaultAudioResampler() |
| Modifier and Type | Method and Description |
|---|---|
void |
resample(java.nio.ShortBuffer inputBuffer,
int inputSampleRate,
java.nio.ShortBuffer outputBuffer,
int outputSampleRate,
int channels)
Resamples input audio from input buffer into the output buffer.
|
public void resample(@NonNull
java.nio.ShortBuffer inputBuffer,
int inputSampleRate,
@NonNull
java.nio.ShortBuffer outputBuffer,
int outputSampleRate,
int channels)
AudioResamplerresample in interface AudioResamplerinputBuffer - the input bufferinputSampleRate - the input sample rateoutputBuffer - the output bufferoutputSampleRate - the output sample ratechannels - the number of channels