com.sun.media.sound
Class SoftPointResampler
java.lang.Object
com.sun.media.sound.SoftAbstractResampler
com.sun.media.sound.SoftPointResampler
- All Implemented Interfaces:
- SoftResampler
public class SoftPointResampler
- extends SoftAbstractResampler
A resampler that uses 0-order (nearest-neighbor) interpolation.
- 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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoftPointResampler
public SoftPointResampler()
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