public class PassThroughAudioResampler extends java.lang.Object implements AudioResampler
AudioResampler that does nothing, meant to be used when sample
rates are identical.DOWNSAMPLE, PASSTHROUGH, UPSAMPLE| Constructor and Description |
|---|
PassThroughAudioResampler() |
| 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