Home
last modified time | relevance | path

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

/frameworks/av/media/libaudioclient/tests/
Daudio_test_utils.cpp163 AudioTrack::Buffer trackBuffer; in fillBuffer() local
164 trackBuffer.frameCount = mTrack->frameCount() * 2; in fillBuffer()
165 status_t status = mTrack->obtainBuffer(&trackBuffer, 1, &nonContig); in fillBuffer()
167 size_t bytesToCopy = std::min(bytesAvailable, trackBuffer.size()); in fillBuffer()
169 memcpy(trackBuffer.data(), ipBuffer + mBytesUsedSoFar, bytesToCopy); in fillBuffer()
171 mTrack->releaseBuffer(&trackBuffer); in fillBuffer()