public interface AudioResampler
UpsampleAudioResampler or
DownsampleAudioResampler for concrete implementations.| Modifier and Type | Field and Description |
|---|---|
static AudioResampler |
DOWNSAMPLE |
static AudioResampler |
PASSTHROUGH |
static AudioResampler |
UPSAMPLE |
| 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.
|
static final AudioResampler DOWNSAMPLE
static final AudioResampler UPSAMPLE
static final AudioResampler PASSTHROUGH
void resample(@NonNull
java.nio.ShortBuffer inputBuffer,
int inputSampleRate,
@NonNull
java.nio.ShortBuffer outputBuffer,
int outputSampleRate,
int channels)
inputBuffer - the input bufferinputSampleRate - the input sample rateoutputBuffer - the output bufferoutputSampleRate - the output sample ratechannels - the number of channels