Home
last modified time | relevance | path

Searched refs:max_sample (Results 1 – 2 of 2) sorted by relevance

/hardware/qcom/audio/visualizer/
Doffload_visualizer.c728 int16_t max_sample = 0; in visualizer_process() local
731 if (inBuffer->s16[inIdx] > max_sample) { in visualizer_process()
732 max_sample = inBuffer->s16[inIdx]; in visualizer_process()
733 } else if (-inBuffer->s16[inIdx] > max_sample) { in visualizer_process()
734 max_sample = -inBuffer->s16[inIdx]; in visualizer_process()
739 visu_ctxt->past_meas[visu_ctxt->meas_buffer_idx].peak_u16 = (uint16_t)max_sample; in visualizer_process()
/hardware/qcom/audio/msm8909/visualizer/
Doffload_visualizer.c707 int16_t max_sample = 0; in visualizer_process() local
710 if (inBuffer->s16[inIdx] > max_sample) { in visualizer_process()
711 max_sample = inBuffer->s16[inIdx]; in visualizer_process()
712 } else if (-inBuffer->s16[inIdx] > max_sample) { in visualizer_process()
713 max_sample = -inBuffer->s16[inIdx]; in visualizer_process()
718 visu_ctxt->past_meas[visu_ctxt->meas_buffer_idx].peak_u16 = (uint16_t)max_sample; in visualizer_process()