Lines Matching refs:mState

507     memset(&mState, 0, sizeof(mState));  in StaticAudioTrackClientProxy()
523 mState.mLoopStart = (uint32_t) loopStart; in setLoop()
524 mState.mLoopEnd = (uint32_t) loopEnd; in setLoop()
525 mState.mLoopCount = loopCount; in setLoop()
526 mState.mLoopSequence = incrementSequence(mState.mLoopSequence, mState.mPositionSequence); in setLoop()
532 if (mState.mLoopCount != 0 && mPosLoop.mBufferPosition >= mState.mLoopEnd) { in setLoop()
533 mPosLoop.mBufferPosition = mState.mLoopStart; in setLoop()
535 mPosLoop.mLoopCount = mState.mLoopCount; in setLoop()
536 (void) mMutator.push(mState); in setLoop()
546 mState.mPosition = (uint32_t) position; in setBufferPosition()
547 mState.mPositionSequence = incrementSequence(mState.mPositionSequence, mState.mLoopSequence); in setBufferPosition()
551 if (mState.mLoopCount > 0) { // only check if loop count is changing in setBufferPosition()
555 if (position >= mState.mLoopEnd) { in setBufferPosition()
559 (void) mMutator.push(mState); in setBufferPosition()
825 memset(&mState, 0, sizeof(mState)); in StaticAudioTrackServerProxy()
894 StaticAudioTrackState trystate = mState; in pollPosition()
912 mState = trystate; in pollPosition()
913 if (mState.mLoopCount == -1) { in pollPosition()
915 } else if (mState.mLoopCount == 0) { in pollPosition()
916 mFramesReady = mFrameCount - mState.mPosition; in pollPosition()
917 } else if (mState.mLoopCount > 0) { in pollPosition()
920 mFramesReady = int64_t(mState.mLoopCount) * (mState.mLoopEnd - mState.mLoopStart) in pollPosition()
921 + mFrameCount - mState.mPosition; in pollPosition()
927 posLoop.mLoopCount = (int32_t) mState.mLoopCount; in pollPosition()
928 posLoop.mBufferPosition = (uint32_t) mState.mPosition; in pollPosition()
932 return (ssize_t) mState.mPosition; in pollPosition()
953 size_t end = mState.mLoopCount != 0 ? mState.mLoopEnd : mFrameCount; in obtainBuffer()
990 size_t position = mState.mPosition; in releaseBuffer()
997 } else if (mState.mLoopCount != 0 && newPosition == mState.mLoopEnd) { in releaseBuffer()
998 newPosition = mState.mLoopStart; in releaseBuffer()
999 if (mState.mLoopCount == -1 || --mState.mLoopCount != 0) { in releaseBuffer()
1008 mState.mPosition = newPosition; in releaseBuffer()
1017 posLoop.mBufferPosition = mState.mPosition; in releaseBuffer()
1018 posLoop.mLoopCount = mState.mLoopCount; in releaseBuffer()