Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Displaying Recording Volume

$
0
0

an example of doing this can be found in the voicerecorder.codeplex.com application.

The basic trick is to examine the values of the samples you get in the record buffer. if you are recording in 16 bit, every two bytes is one sample (can convert to Int16 with the BitConverter class). Then, for each recorded buffer, use the loudest sample to show the volume meter. Meters work best logarithmic, so you might want to convert to decibels first as well.


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>