Searched refs:SAMPLES_PER_FRAME (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/media/java/android/media/
H A DAmrInputStream.java38 private final static int SAMPLES_PER_FRAME = 8000 * 20 / 1000; field in class:AmrInputStream
47 private byte[] mBuf = new byte[SAMPLES_PER_FRAME * 2];
86 for (int i = 0; i < SAMPLES_PER_FRAME * 2; ) {
87 int n = mInputStream.read(mBuf, i, SAMPLES_PER_FRAME * 2 - i);
/frameworks/base/media/jni/
H A Dandroid_media_AmrInputStream.cpp34 static const int SAMPLES_PER_FRAME = ((SAMPLING_RATE_HZ * FRAME_DURATION_MS) / 1000); variable
36 static const int BYTES_PER_FRAME = (SAMPLES_PER_FRAME * BYTES_PER_SAMPLE);

Completed in 75 milliseconds