Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/
DAudioSource.cpp409 uint64_t numLostBytes = 0; // AudioRecord::getInputFramesLost() returns uint32_t in onMoreData() local
413 numLostBytes = (uint64_t)mRecord->getInputFramesLost() * mRecord->frameSize(); in onMoreData()
416 CHECK_EQ(numLostBytes & 1, 0u); in onMoreData()
418 if (numLostBytes > 0) { in onMoreData()
421 ALOGW("Lost audio record data: %" PRIu64 " bytes", numLostBytes); in onMoreData()
424 while (numLostBytes > 0) { in onMoreData()
425 uint64_t bufferSize = numLostBytes; in onMoreData()
426 if (numLostBytes > kMaxBufferSize) { in onMoreData()
427 numLostBytes -= kMaxBufferSize; in onMoreData()
430 numLostBytes = 0; in onMoreData()
/frameworks/av/media/libaudioclient/tests/
Daudio_test_utils.cpp290 uint64_t numLostBytes = (uint64_t)mRecord->getInputFramesLost() * frameSize; in onMoreData() local
291 if (numLostBytes > 0) { in onMoreData()
292 ALOGW("Lost audio record data: %" PRIu64 " bytes", numLostBytes); in onMoreData()
295 while (numLostBytes > 0) { in onMoreData()
296 uint64_t bufferSize = numLostBytes; in onMoreData()
297 if (numLostBytes > mMaxBytesPerCallback) { in onMoreData()
298 numLostBytes -= mMaxBytesPerCallback; in onMoreData()
301 numLostBytes = 0; in onMoreData()