java类javax.sound.sampled.ReverbType的实例源码

ReverbTypeTest.java 文件源码 项目:cn1 阅读 21 收藏 0 点赞 0 评论 0
public void testReverbType() {
    ReverbType rt1 = new MyReverbType("name", 1, 2f, 3, 4f, 5);

    assertEquals(
            "name, early reflection delay 1 ns, early reflection intensity 2.0 dB, late deflection delay 3 ns, late reflection intensity 4.0 dB, decay time 5",
            rt1.toString());
    assertEquals("name", rt1.getName());
    assertEquals(1, rt1.getEarlyReflectionDelay());
    assertEquals(2f, rt1.getEarlyReflectionIntensity());
    assertEquals(3, rt1.getLateReflectionDelay());
    assertEquals(4f, rt1.getLateReflectionIntensity());
    assertEquals(5, rt1.getDecayTime());

    ReverbType rt2 = new MyReverbType("name", 1, 2f, 3, 4f, 5);
    assertFalse(rt1.equals(rt2));
    assertTrue(rt1.equals(rt1));
}
ReverbTypeTest.java 文件源码 项目:freeVM 阅读 20 收藏 0 点赞 0 评论 0
public void testReverbType() {
    ReverbType rt1 = new MyReverbType("name", 1, 2f, 3, 4f, 5);

    assertEquals(
            "name, early reflection delay 1 ns, early reflection intensity 2.0 dB, late deflection delay 3 ns, late reflection intensity 4.0 dB, decay time 5",
            rt1.toString());
    assertEquals("name", rt1.getName());
    assertEquals(1, rt1.getEarlyReflectionDelay());
    assertEquals(2f, rt1.getEarlyReflectionIntensity());
    assertEquals(3, rt1.getLateReflectionDelay());
    assertEquals(4f, rt1.getLateReflectionIntensity());
    assertEquals(5, rt1.getDecayTime());

    ReverbType rt2 = new MyReverbType("name", 1, 2f, 3, 4f, 5);
    assertFalse(rt1.equals(rt2));
    assertTrue(rt1.equals(rt1));
}
ReverbTypeTest.java 文件源码 项目:freeVM 阅读 18 收藏 0 点赞 0 评论 0
public void testReverbType() {
    ReverbType rt1 = new MyReverbType("name", 1, 2f, 3, 4f, 5);

    assertEquals(
            "name, early reflection delay 1 ns, early reflection intensity 2.0 dB, late deflection delay 3 ns, late reflection intensity 4.0 dB, decay time 5",
            rt1.toString());
    assertEquals("name", rt1.getName());
    assertEquals(1, rt1.getEarlyReflectionDelay());
    assertEquals(2f, rt1.getEarlyReflectionIntensity());
    assertEquals(3, rt1.getLateReflectionDelay());
    assertEquals(4f, rt1.getLateReflectionIntensity());
    assertEquals(5, rt1.getDecayTime());

    ReverbType rt2 = new MyReverbType("name", 1, 2f, 3, 4f, 5);
    assertFalse(rt1.equals(rt2));
    assertTrue(rt1.equals(rt1));
}


问题


面经


文章

微信
公众号

扫码关注公众号