jdk/test/javax/sound/midi/Gervill/SoftLinearResampler2/Interpolate.java
changeset 5551 327690766109
parent 1846 4a53d636e2f4
child 21596 0e3a39f29dbc
equal deleted inserted replaced
5523:654298d26561 5551:327690766109
     1 /*
     1 /*
     2  * Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Sun designates this
     7  * published by the Free Software Foundation.  Oracle designates this
     8  * particular file as subject to the "Classpath" exception as provided
     8  * particular file as subject to the "Classpath" exception as provided
     9  * by Sun in the LICENSE file that accompanied this code.
     9  * by Oracle in the LICENSE file that accompanied this code.
    10  *
    10  *
    11  * This code is distributed in the hope that it will be useful, but WITHOUT
    11  * This code is distributed in the hope that it will be useful, but WITHOUT
    12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    14  * version 2 for more details (a copy is included in the LICENSE file that
    14  * version 2 for more details (a copy is included in the LICENSE file that
    16  *
    16  *
    17  * You should have received a copy of the GNU General Public License version
    17  * You should have received a copy of the GNU General Public License version
    18  * 2 along with this work; if not, write to the Free Software Foundation,
    18  * 2 along with this work; if not, write to the Free Software Foundation,
    19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20  *
    20  *
    21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * or visit www.oracle.com if you need additional information or have any
    23  * have any questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 /* @test
    26 /* @test
    27    @summary Test SoftLinearResampler2 interpolate method */
    27    @summary Test SoftLinearResampler2 interpolate method */
    28 
    28 
   109         max = testResampler(resampler, 1.0f, 0.00f);
   109         max = testResampler(resampler, 1.0f, 0.00f);
   110         if(max > 0.2)
   110         if(max > 0.2)
   111             fail("Interpolation failed, error="+max);
   111             fail("Interpolation failed, error="+max);
   112     }
   112     }
   113 }
   113 }
       
   114