< prev index next >
src/java.desktop/share/classes/com/sun/media/sound/SoftLinearResampler.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 first-order (linear) interpolation.
*
* @author Karl Helgason
*/
public final class SoftLinearResampler extends SoftAbstractResampler {
+ @Override
public int getPadding() {
return 2;
}
+ @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];
*** 63,70 ****
}
}
in_offset[0] = ix;
out_offset[0] = ox;
startpitch[0] = pitch;
-
}
}
--- 66,72 ----
< prev index next >