Creating a Spectrogram in C

I am trying to make an audio spectrogram in C and I am thinking about using the BASS library:

http://www.un4seen.com.

I searched over Google and here, but not so useful. If any of you have any experience or resource regarding this, please help; it would be much appreciated.

So this is what I want to do:

1. Read from mic input.
2. Sample the data.
3. Apply Short time Fourier transform.
4. Then take the magnitude and plot it at the certain frequency.

Something like this:

http://upload.wikimedia.org/wikipedia/commons/c/c5/Spectrogram-19thC.png

If you can help it would be great. Also its a WINDOWS application

Also it would be great if someone can refer me to tut or sample code how to read from microphone using either C or C++, i already wrote the fft code in C (did that last semester for class and have it so that would not be a problem)/

If you can help it would be really helpful, please.
You can use waveIn* win32api's or DirectSound API to read from microphone, look at MSDN for complete documentation.
Topic archived. No new replies allowed.