Home
last modified time | relevance | path

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

/AliOS-Things-master/components/uvoice/audio/
A Daudio_common.c55 double ampl_sum = 0.0; in pcm_to_decibel() local
68 ampl_sum += abs(buffer[i]); in pcm_to_decibel()
70 ampl_sum /= samples; in pcm_to_decibel()
71 decibel = (int)(20.0 * log10(ampl_sum)); in pcm_to_decibel()

Completed in 4 milliseconds