Home
last modified time | relevance | path

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

/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/common/src/
H A Daudio_ring_cache.cpp245 OptResult AudioRingCache::HandleCrossDequeue(size_t tempReadIndex, size_t readableSize, const Buffe… in HandleCrossDequeue() argument
250 size_t tailSize = tempReadIndex - (baseIndex_ + cacheTotalSize_); in HandleCrossDequeue()
267 readIndex_ = tempReadIndex; // move write index in HandleCrossDequeue()
299 size_t tempReadIndex = readIndex_ + buffer.dataSize; in Dequeue() local
300 if (tempReadIndex > baseIndex_ + cacheTotalSize_) { in Dequeue()
301 return HandleCrossDequeue(tempReadIndex, readableSize, buffer); in Dequeue()
315 if (tempReadIndex - baseIndex_ == cacheTotalSize_) { in Dequeue()
318 readIndex_ = tempReadIndex; // move read index in Dequeue()
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/common/include/
H A Daudio_ring_cache.h82 … OptResult HandleCrossDequeue(size_t tempReadIndex, size_t readableSize, const BufferWrap &buffer);