com.sun.media.sound
Class SoftCubicResampler

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

public class SoftCubicResampler
extends SoftAbstractResampler

A resampler that uses third-order (cubic) interpolation.

Author:
Karl Helgason

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

SoftCubicResampler

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