public class DefaultAudioStretcher extends java.lang.Object implements AudioStretcher
AudioStretcher that delegates to appropriate classes
based on input and output size.CUT, INSERT, PASSTHROUGH| Constructor and Description |
|---|
DefaultAudioStretcher() |
| 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