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

New Post: Question about the Framework (record only when dB high enough)

$
0
0

sure, you call "StartRecording", but every time a buffer of audio is available (DataAvailable event), you examine the value of each sample. If the volume is greater than a particular threshold, you write the recorded buffer to your WAV file, if not, you simply discard it.


Viewing all articles
Browse latest Browse all 5831

Trending Articles



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