com.sun.media.sound
Class SoftLanczosResampler

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

public class SoftLanczosResampler
extends SoftAbstractResampler

Lanczos interpolation resampler.

Author:
Karl Helgason

Constructor Summary
SoftLanczosResampler()
           
 
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)
           
static double sinc(double x)
           
static float[] sincTable(int size, float offset)
           
 
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

SoftLanczosResampler

public SoftLanczosResampler()
Method Detail

sinc

public static double sinc(double x)

sincTable

public static float[] sincTable(int size,
                                float offset)

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