linux - Get ALSA peak value from C code -


i'm trying retrieve current audio peak value using alsa , c. prefer have value scalar between 0.0 , 1.0 (or perhaps 0 , 100). on windows use iaudiometerinformation allows me construct basic vu meter.

edit: referring detecting speaker output only, not microphone.

alsa not have current audio peak value.

loop on samples maximum value when you're writing or reading them.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -