Searched refs:samplesLeft (Results 1 – 1 of 1) sorted by relevance
123 int samplesLeft = mDurationMs * SAMPLE_RATE * mAudioRecord.getChannelCount() / 1000; in run() local124 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()