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

New Post: Spectrum Analyzer FFT

$
0
0
When you create the aggregator, use this line to create the event

aggregator.FftCalculated += (s, a) => OnFftCalculated(a); // <<< EVENT


fftEventArgs is handled by Linq using =>
If you dont understand Linq, just copy and paste the code, it should work fine.

Then add this function
protected virtual void OnFftCalculated(FftEventArgs e)
{
    // Send the complex array (paired float array) e.Result[] to your graph

}

Viewing all articles
Browse latest Browse all 5831

Trending Articles



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