Package 

Class CutAudioStretcher

  • All Implemented Interfaces:
    com.otaliastudios.transcoder.stretch.AudioStretcher

    
    public class CutAudioStretcher
     implements AudioStretcher
                        

    A 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.

    • Method Summary

      Modifier and Type Method Description
      void stretch(@NonNull() ShortBuffer input, @NonNull() ShortBuffer output, int channels) Stretches the input into the output, based on the remaining value of both.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • stretch

         void stretch(@NonNull() ShortBuffer input, @NonNull() ShortBuffer output, int channels)

        Stretches the input into the output, based on the remaining value of both.At the end of this method, the position of both should be equal to theirrespective limit.And of course, both limits should remain unchanged.

        Parameters:
        input - input buffer
        output - output buffer
        channels - audio channels