public class InsertAudioStretcher extends java.lang.Object implements AudioStretcher
AudioStretcher meant to be used when output size is bigger than the input.
It will insert noise samples to fill the gaps, at regular intervals.
This modifies the audio pitch of course.CUT, INSERT, PASSTHROUGH| Constructor and Description |
|---|
InsertAudioStretcher() |
| 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