Package 

Interface AudioStretcher


  • 
    public interface AudioStretcher
    
                        

    An AudioStretcher will change audio samples duration, in response to a com.otaliastudios.transcoder.time.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.

    • Method Summary

      Modifier and Type Method Description
      abstract 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

         abstract 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