Lines Matching refs:inBuffer
322 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Visualizer_process() argument
330 if (inBuffer == NULL || inBuffer->raw == NULL || in Visualizer_process()
332 inBuffer->frameCount != outBuffer->frameCount || in Visualizer_process()
333 inBuffer->frameCount == 0) { in Visualizer_process()
337 const size_t sampleLen = inBuffer->frameCount * pContext->mChannelCount; in Visualizer_process()
347 maxSample = fmax(maxSample, fabs(inBuffer->f32[inIdx])); in Visualizer_process()
348 rmsSqAcc += inBuffer->f32[inIdx] * inBuffer->f32[inIdx]; in Visualizer_process()
355 maxSample = std::max(maxSample, std::abs(int32_t(inBuffer->s16[inIdx]))); in Visualizer_process()
356 rmsSqAcc += inBuffer->s16[inIdx] * inBuffer->s16[inIdx]; in Visualizer_process()
386 smp += inBuffer->f32[inIdx++]; in Visualizer_process()
404 int32_t smp = inBuffer->s16[i]; in Visualizer_process()
441 smp += inBuffer->f32[inIdx++]; in Visualizer_process()
445 const int32_t smp = (inBuffer->s16[inIdx] + inBuffer->s16[inIdx + 1]) >> shift; in Visualizer_process()
459 if (inBuffer->raw != outBuffer->raw) { in Visualizer_process()
463 outBuffer->f32[i] += inBuffer->f32[i]; in Visualizer_process()
466 memcpy(outBuffer->raw, inBuffer->raw, sampleLen * sizeof(float)); in Visualizer_process()
471 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in Visualizer_process()
474 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in Visualizer_process()