com.sun.media.sound
Class SoftLinearResampler

java.lang.Object
  extended by com.sun.media.sound.SoftAbstractResampler
      extended by com.sun.media.sound.SoftLinearResampler
All Implemented Interfaces:
SoftResampler

public class SoftLinearResampler
extends SoftAbstractResampler

A resampler that uses first-order (linear) interpolation.

Author:
Karl Helgason

Constructor Summary
SoftLinearResampler()
           
 
Method Summary
 int getPadding()
           
 void interpolate(float[] in, float[] in_offset, float in_end, float[] startpitch, float pitchstep, float[] out, int[] out_offset, int out_end)
           
 
Methods inherited from class com.sun.media.sound.SoftAbstractResampler
openStreamer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftLinearResampler

public SoftLinearResampler()
Method Detail

getPadding

public int getPadding()
Specified by:
getPadding in class SoftAbstractResampler

interpolate

public void interpolate(float[] in,
                        float[] in_offset,
                        float in_end,
                        float[] startpitch,
                        float pitchstep,
                        float[] out,
                        int[] out_offset,
                        int out_end)
Specified by:
interpolate in class SoftAbstractResampler