All Audio frequencies

若如初见. 提交于 2019-12-22 15:50:12

问题


How can I get(Is it possible?) all audio frequencies are now playing in the system for writing some sound visualizer? Is there any library c++ or c#? Thanks in advance


回答1:


Basic steps are:

  • apply window function to block of samples (e.g. 1024 samples, Hanning window)
  • perform real-to-complex FFT on windowed samples
  • take magnitude of each FFT output bin (sqrt(re * re + im * im))
  • identify peaks in resulting power spectrum estimate
  • the bin index of each peak corresponds to the frequency of that component



回答2:


I am not sure, but i think you can use FMOD library to do that. Specifically, Get spectrum function.



来源:https://stackoverflow.com/questions/2613009/all-audio-frequencies

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