Home
last modified time | relevance | path

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

/device/generic/goldfish/audio/
Dring_buffer.cpp71 chunk.data = &mBuffer[mProducePos]; in getProduceChunk()
72 chunk.size = (mProducePos >= mConsumePos) in getProduceChunk()
73 ? std::min(mCapacity - mProducePos, availableToProduce) in getProduceChunk()
74 : std::min(mConsumePos - mProducePos, availableToProduce); in getProduceChunk()
84 mProducePos = (mProducePos + size) % mCapacity; in produce()
99 const int chunkSz = (mProducePos >= mConsumePos) in produce()
100 ? std::min(mCapacity - mProducePos, availableToProduce) in produce()
101 : std::min(mConsumePos - mProducePos, availableToProduce); in produce()
102 void *dst = &mBuffer[mProducePos]; in produce()
106 mProducePos = (mProducePos + chunkSz) % mCapacity; in produce()
[all …]
Dring_buffer.h94 int mProducePos = 0; member