Lines Matching refs:inBuffer
634 audio_buffer_t *inBuffer, in visualizer_process() argument
642 if (inBuffer == NULL || inBuffer->raw == NULL || in visualizer_process()
644 inBuffer->frameCount != outBuffer->frameCount || in visualizer_process()
645 inBuffer->frameCount == 0) { in visualizer_process()
655 for (inIdx = 0 ; inIdx < inBuffer->frameCount * visu_ctxt->channel_count ; inIdx++) { in visualizer_process()
656 if (inBuffer->s16[inIdx] > max_sample) { in visualizer_process()
657 max_sample = inBuffer->s16[inIdx]; in visualizer_process()
658 } else if (-inBuffer->s16[inIdx] > max_sample) { in visualizer_process()
659 max_sample = -inBuffer->s16[inIdx]; in visualizer_process()
661 rms_squared_acc += (inBuffer->s16[inIdx] * inBuffer->s16[inIdx]); in visualizer_process()
666 rms_squared_acc / (inBuffer->frameCount * visu_ctxt->channel_count); in visualizer_process()
680 int len = inBuffer->frameCount * 2; in visualizer_process()
683 int32_t smp = inBuffer->s16[i]; in visualizer_process()
707 in_idx < inBuffer->frameCount; in visualizer_process()
713 int32_t smp = inBuffer->s16[2 * in_idx] + inBuffer->s16[2 * in_idx + 1]; in visualizer_process()
974 audio_buffer_t *inBuffer __unused, in effect_process()