public interface AudioStretcher
TimeInterpolator that altered the sample timestamp.
This can mean either shrink the sample (in case of video speed up) or elongate it (in case of
video slow down) so that it matches the output size.| Modifier and Type | Field and Description |
|---|---|
static AudioStretcher |
CUT |
static AudioStretcher |
INSERT |
static AudioStretcher |
PASSTHROUGH |
| Modifier and Type | Method and Description |
|---|---|
void |
stretch(java.nio.ShortBuffer input,
java.nio.ShortBuffer output,
int channels)
Stretches the input into the output, based on the
Buffer.remaining() value of both. |
static final AudioStretcher PASSTHROUGH
static final AudioStretcher CUT
static final AudioStretcher INSERT
void stretch(@NonNull
java.nio.ShortBuffer input,
@NonNull
java.nio.ShortBuffer output,
int channels)
Buffer.remaining() value of both.
At the end of this method, the Buffer.position() of both should be equal to their
respective Buffer.limit().
And of course, both Buffer.limit()s should remain unchanged.input - input bufferoutput - output bufferchannels - audio channels