Lines Matching refs:audioBuffer

1627 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, int32_t waitCount, size_t *nonContig)  in obtainBuffer()  argument
1629 if (audioBuffer == NULL) { in obtainBuffer()
1636 audioBuffer->frameCount = 0; in obtainBuffer()
1637 audioBuffer->size = 0; in obtainBuffer()
1638 audioBuffer->raw = NULL; in obtainBuffer()
1660 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer()
1663 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument
1723 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer()
1728 audioBuffer->frameCount = buffer.mFrameCount; in obtainBuffer()
1729 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer()
1730 audioBuffer->raw = buffer.mRaw; in obtainBuffer()
1731 audioBuffer->sequence = oldSequence; in obtainBuffer()
1738 void AudioTrack::releaseBuffer(const Buffer* audioBuffer) in releaseBuffer() argument
1745 size_t stepCount = audioBuffer->size / mFrameSize; in releaseBuffer()
1752 buffer.mRaw = audioBuffer->raw; in releaseBuffer()
1755 if (audioBuffer->sequence != mSequence) { in releaseBuffer()
1758 __func__, audioBuffer->sequence, mSequence); in releaseBuffer()
1807 Buffer audioBuffer; in write() local
1810 audioBuffer.frameCount = userSize / mFrameSize; in write()
1812 status_t err = obtainBuffer(&audioBuffer, in write()
1824 size_t toWrite = audioBuffer.size; in write()
1825 memcpy(audioBuffer.i8, buffer, toWrite); in write()
1830 releaseBuffer(&audioBuffer); in write()
2124 Buffer audioBuffer; in processAudioBuffer() local
2125 audioBuffer.frameCount = mRemainingFrames; in processAudioBuffer()
2127 status_t err = obtainBuffer(&audioBuffer, requested, NULL, &nonContig); in processAudioBuffer()
2128 LOG_ALWAYS_FATAL_IF((err != NO_ERROR) != (audioBuffer.frameCount == 0), in processAudioBuffer()
2130 __func__, mPortId, err, audioBuffer.frameCount); in processAudioBuffer()
2132 size_t avail = audioBuffer.frameCount + nonContig; in processAudioBuffer()
2134 __func__, mPortId, mRemainingFrames, avail, audioBuffer.frameCount, nonContig, err); in processAudioBuffer()
2179 size_t reqSize = audioBuffer.size; in processAudioBuffer()
2183 audioBuffer.size += nonContig; in processAudioBuffer()
2186 mUserData, &audioBuffer); in processAudioBuffer()
2187 size_t writtenSize = audioBuffer.size; in processAudioBuffer()
2249 audioBuffer.frameCount = releasedFrames; in processAudioBuffer()
2257 releaseBuffer(&audioBuffer); in processAudioBuffer()