C#C
C#16mo ago
PowerZox

Easy to use C# audio library for spectrum analyzer?

Hi,

I'm making a spectrum analyzer and wanted to know what's an appropriate audio library.

My goal is to get the audio level of the desktop at a specific frequency at a decent rate (5-40ms). I specifically want the real-time desktop audio, not reading a file.

So far I've made a VU meter with the NAudio library and the following

MMDevice defaultDevice = enumerator.GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia);

defaultDevice.AudioMeterInformation.MasterPeakValue


but making a spectrum analyzer with this library without reading a file seems much much more complicated and I wouldn't know where to start. Does anyone have any suggestion of how to go about doing this (with any library not necessarily NAudio).
20240828_0006542.gif
Was this page helpful?