Lines Matching refs:inBuffer
321 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Visualizer_process() argument
329 if (inBuffer == NULL || inBuffer->raw == NULL || in Visualizer_process()
331 inBuffer->frameCount != outBuffer->frameCount || in Visualizer_process()
332 inBuffer->frameCount == 0) { in Visualizer_process()
336 const size_t sampleLen = inBuffer->frameCount * pContext->mChannelCount; in Visualizer_process()
346 maxSample = fmax(maxSample, fabs(inBuffer->f32[inIdx])); in Visualizer_process()
347 rmsSqAcc += inBuffer->f32[inIdx] * inBuffer->f32[inIdx]; in Visualizer_process()
354 maxSample = std::max(maxSample, std::abs(int32_t(inBuffer->s16[inIdx]))); in Visualizer_process()
355 rmsSqAcc += inBuffer->s16[inIdx] * inBuffer->s16[inIdx]; in Visualizer_process()
385 smp += inBuffer->f32[inIdx++]; in Visualizer_process()
403 int32_t smp = inBuffer->s16[i]; in Visualizer_process()
440 smp += inBuffer->f32[inIdx++]; in Visualizer_process()
444 const int32_t smp = (inBuffer->s16[inIdx] + inBuffer->s16[inIdx + 1]) >> shift; in Visualizer_process()
458 if (inBuffer->raw != outBuffer->raw) { in Visualizer_process()
462 outBuffer->f32[i] += inBuffer->f32[i]; in Visualizer_process()
465 memcpy(outBuffer->raw, inBuffer->raw, sampleLen * sizeof(float)); in Visualizer_process()
470 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in Visualizer_process()
473 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in Visualizer_process()