Home
last modified time | relevance | path

Searched refs:samplesLeft (Results 1 – 1 of 1) sorted by relevance

/aosp14/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
H A DAudioPolicyDeathTestActivity.java123 int samplesLeft = mDurationMs * SAMPLE_RATE * mAudioRecord.getChannelCount() / 1000; in run() local
124 short[] readBuffer = new short[samplesLeft / 10]; in run()
129 int read = readBuffer.length < samplesLeft ? readBuffer.length : samplesLeft; in run()
136 samplesLeft -= read; in run()
137 } while (elapsedTimeMs < mDurationMs && samplesLeft > 0); in run()