List of usage examples for android.media AudioFormat getSampleRate
public int getSampleRate()
Source Link
From source file:Main.java
public static int frameCountFromMsec(int ms, AudioFormat format) { return ms * format.getSampleRate() / 1000; }