Package javax.media.format

Examples of javax.media.format.AudioFormat.computeDuration()


    // frameRate: AFFECTS - inversely
    {
      final AudioFormat f1 = new AudioFormat(AudioFormat.DOLBYAC3, 2.0, 1, 2, 3, 4, 5, 7.0, Format.byteArray);
      assertEquals(f1.computeDuration(0), 0L);
      assertEquals(f1.computeDuration(1), 228571000L);
      assertEquals(f1.computeDuration(1000), 228571428000L);
      compare(f1, 0);
      compare(f1, 1);
      compare(f1, 1000);
     
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.