com.sun.media.sound
Class SoftLinearResampler2
java.lang.Object
com.sun.media.sound.SoftAbstractResampler
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
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 |
SoftLinearResampler2
public SoftLinearResampler2()
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