< prev index next >

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

Print this page

        

*** 20,29 **** --- 20,30 ---- * * 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 standard transformer used in connection blocks. * It expects input values to be between 0 and 1.
*** 71,80 **** --- 72,82 ---- this.direction = direction; this.polarity = polarity; this.transform = transform; } + @Override public double transform(double value) { double s; double a; if (direction == DIRECTION_MAX2MIN) value = 1.0 - value;
< prev index next >