Lines Matching refs:inBuffer
312 effect_handle_t self,audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Visualizer_process() argument
320 if (inBuffer == NULL || inBuffer->raw == NULL || in Visualizer_process()
322 inBuffer->frameCount != outBuffer->frameCount || in Visualizer_process()
323 inBuffer->frameCount == 0) { in Visualizer_process()
333 for (inIdx = 0 ; inIdx < inBuffer->frameCount * pContext->mChannelCount ; inIdx++) { in Visualizer_process()
334 if (inBuffer->s16[inIdx] > maxSample) { in Visualizer_process()
335 maxSample = inBuffer->s16[inIdx]; in Visualizer_process()
336 } else if (-inBuffer->s16[inIdx] > maxSample) { in Visualizer_process()
337 maxSample = -inBuffer->s16[inIdx]; in Visualizer_process()
339 rmsSqAcc += (inBuffer->s16[inIdx] * inBuffer->s16[inIdx]); in Visualizer_process()
344 rmsSqAcc / (inBuffer->frameCount * pContext->mChannelCount); in Visualizer_process()
358 int len = inBuffer->frameCount * 2; in Visualizer_process()
360 int32_t smp = inBuffer->s16[i]; in Visualizer_process()
383 inIdx < inBuffer->frameCount; in Visualizer_process()
389 int32_t smp = inBuffer->s16[2 * inIdx] + inBuffer->s16[2 * inIdx + 1]; in Visualizer_process()
402 if (inBuffer->raw != outBuffer->raw) { in Visualizer_process()
405 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in Visualizer_process()
408 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in Visualizer_process()