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

New Post: sound buffer size

$
0
0
you can adjust the buffer sizes for recording (e.g you could increase latency), but with some types of recording device this is not necessarily possible or desirable. So the general approach suggested by K24A3 is the right one. However, it will not work as desired, since you are doing the FFT only on max values.

Put received samples into a buffer and when you have the desired amount, perform the FFT. If you look through the NAudio demo code, you'll see examples of this in action. I often call the class that does this a "SampleAggregator"

Viewing all articles
Browse latest Browse all 5831

Trending Articles



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