Java examples for javax.sound.sampled:Audio
Calculate frames based on AudioFormat
//package com.java2s; import javax.sound.sampled.AudioFormat; public class Main { public static int frames(AudioFormat format, int dataLength) { int frameSize = format.getFrameSize(); return dataLength / frameSize; }/*from w w w.j ava 2 s. c o m*/ }