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