com.sun.media.sound
Class SoftLanczosResampler
java.lang.Object
com.sun.media.sound.SoftAbstractResampler
com.sun.media.sound.SoftLanczosResampler
- All Implemented Interfaces:
- SoftResampler
public class SoftLanczosResampler
- extends SoftAbstractResampler
Lanczos interpolation resampler.
- Author:
- Karl Helgason
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoftLanczosResampler
public SoftLanczosResampler()
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