< prev index next >

src/java.desktop/share/classes/com/sun/media/sound/SoftCubicResampler.java

Print this page

        

*** 20,42 **** --- 20,45 ---- * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ + package com.sun.media.sound; /** * A resampler that uses third-order (cubic) interpolation. * * @author Karl Helgason */ public final class SoftCubicResampler extends SoftAbstractResampler { + @Override public int getPadding() { return 3; } + @Override public void interpolate(float[] in, float[] in_offset, float in_end, float[] startpitch, float pitchstep, float[] out, int[] out_offset, int out_end) { float pitch = startpitch[0]; float ix = in_offset[0];
< prev index next >