public static void test(byte[] file) throws Exception {
InputStream inputStream = new ByteArrayInputStream(file);
AudioFileFormat aff = AudioSystem.getAudioFileFormat(inputStream);
if (aff.getFormat().getSampleSizeInBits() != 12) {
throw new Exception("Wrong sample size. test FAILED");
}
if (aff.getFormat().getFrameSize() != 2) {
throw new Exception("Wrong frame size. test FAILED");
}
if (aff.getFrameLength() != 100) {
throw new Exception("Wrong file length. test FAILED");
}
}
Aiff12bit.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:openjdk-jdk10
作者:
评论列表
文章目录