com.sun.media.sound
Class SoftLinearResampler2

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

public class SoftLinearResampler2
extends SoftAbstractResampler

A resampler that uses first-order (linear) interpolation. This one doesn't perform float to int casting inside the processing loop.

Author:
Karl Helgason

Constructor Summary
SoftLinearResampler2()
           
 
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

SoftLinearResampler2

public SoftLinearResampler2()
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