Home | History | Annotate | Download | only in audioflinger

Lines Matching full:pinbuffer

1200     Buffer *pInBuffer;
1215 pInBuffer = mBufferQueue.itemAt(0);
1217 pInBuffer = &inBuffer;
1220 if (pInBuffer->frameCount == 0) {
1225 mOutBuffer.frameCount = pInBuffer->frameCount;
1246 uint32_t outFrames = pInBuffer->frameCount > mOutBuffer.frameCount ? mOutBuffer.frameCount :
1247 pInBuffer->frameCount;
1248 memcpy(mOutBuffer.raw, pInBuffer->raw, outFrames * mFrameSize);
1254 pInBuffer->frameCount -= outFrames;
1255 pInBuffer->raw = (int8_t *)pInBuffer->raw + outFrames * mFrameSize;
1259 if (pInBuffer->frameCount == 0) {
1262 free(pInBuffer->mBuffer);
1263 delete pInBuffer;
1277 pInBuffer = new Buffer;
1278 pInBuffer->mBuffer = malloc(inBuffer.frameCount * mFrameSize);
1279 pInBuffer->frameCount = inBuffer.frameCount;
1280 pInBuffer->raw = pInBuffer->mBuffer;
1281 memcpy(pInBuffer->raw, inBuffer.raw, inBuffer.frameCount * mFrameSize);
1282 mBufferQueue.add(pInBuffer);