Example usage for android.media AudioFormat getSampleRate

List of usage examples for android.media AudioFormat getSampleRate

Introduction

In this page you can find the example usage for android.media AudioFormat getSampleRate.

Prototype

public int getSampleRate() 

Source Link

Document

Return the sample rate.

Usage

From source file:Main.java

public static int frameCountFromMsec(int ms, AudioFormat format) {
    return ms * format.getSampleRate() / 1000;
}