How to create audio spectrum in c#

▼魔方 西西 提交于 2019-11-29 01:58:02

问题


I want to make an audio player in c# with signal spectrum.

I saw some examples in the net about how to make the player but cant find example about the spectrum.

Anyone can give me a direction please?

http://www.codeproject.com/KB/directx/directshowmediaplayer.aspx http://www.codeproject.com/KB/directx/directshownet.aspx?fid=4377&select=2579548&fr=1#xx0xx


回答1:


There's a CodeProject article that shows how to create a visualizer. If you want to perform more advanced actions, you can look at libraries such as FMOD and BASS. They can both pretty much display spectrums with a few lines of code. However, if your project is for commercial use, you should read their licenses. Alternatively, you can use the open-source NAudio library which also makes it easier to display the spectrum. There's sample code included, such as this SpectrumAnalyser class.




回答2:


You may want to check NAudio out.



来源:https://stackoverflow.com/questions/6245450/how-to-create-audio-spectrum-in-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!