public class CutAudioStretcher extends java.lang.Object implements AudioStretcher
AudioStretcher meant to be used when output size is smaller than the input.
Cutting the latest samples is a way to go that does not modify the audio pitch.CUT, INSERT, PASSTHROUGH| Constructor and Description |
|---|
CutAudioStretcher() |
| 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. |
public void stretch(@NonNull
java.nio.ShortBuffer input,
@NonNull
java.nio.ShortBuffer output,
int channels)
AudioStretcherBuffer.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.stretch in interface AudioStretcherinput - input bufferoutput - output bufferchannels - audio channels