views:

103

answers:

2

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

+4  A: 

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
Paul R
These are basic steps of what action?
TGadfly
@TGadfly: these are the basic steps for determining the frequency components present in your audio stream. You can use an FFT library such as FFTW or KissFFT to do the heavy lifting - the rest is pretty straightforward.
Paul R
+1  A: 

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

n535