Lines Matching refs:inBuffer
306 effect_handle_t self,audio_buffer_t *inBuffer, audio_buffer_t *outBuffer)
314 if (inBuffer == NULL || inBuffer->raw == NULL ||
316 inBuffer->frameCount != outBuffer->frameCount ||
317 inBuffer->frameCount == 0) {
327 for (inIdx = 0 ; inIdx < inBuffer->frameCount * pContext->mChannelCount ; inIdx++) {
328 if (inBuffer->s16[inIdx] > maxSample) {
329 maxSample = inBuffer->s16[inIdx];
330 } else if (-inBuffer->s16[inIdx] > maxSample) {
331 maxSample = -inBuffer->s16[inIdx];
333 rmsSqAcc += (inBuffer->s16[inIdx] * inBuffer->s16[inIdx]);
338 rmsSqAcc / (inBuffer->frameCount * pContext->mChannelCount);
352 int len = inBuffer->frameCount * 2;
354 int32_t smp = inBuffer->s16[i];
377 inIdx < inBuffer->frameCount;
383 int32_t smp = inBuffer->s16[2 * inIdx] + inBuffer->s16[2 * inIdx + 1];
396 if (inBuffer->raw != outBuffer->raw) {
399 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]);
402 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t));