Question about audio programming

Hello i was wondering what part of the audio file is used to make a spectrum, or the effect's in windows media player where the visual's pulsate to the music. Is it the frequency?
Your question is off topic. This is a forum about C++ programming. There are plenty of places where you can ask your question, e.g. here:
http://www.audioforums.com/forums/
If you mean the "squiggly line" display thing, that's an oscilliscope, and it's very simple.

Audio data is just a very long chain of "samples". To draw an oscilliscope you simply plot these samples as if they were points on a graph and then "connect the dots"

X = time (first sample you put on the left, and keep putting other samples to the right of previous sample)
Y = sample value

So for example if you have samples that look like: 4,3,2,1,0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, that would make a wave that looks like a 'W'


If you mean the "bars" thing where the bars on the left show the bass level and the bars on the right show the treble, that's a bit more complicated, and typically involves running the audio through an FFT to get the magnitude of various frequencies.
thanks for the reply's. and sorry i though cause i will be programming it in c++ it was ok.
That's OK. WMP was probably written in C++. 8^D
I didn't think his question was offtopic at all.
You might want to look into OpenAL for audio.
I got an idea of how it works now. I started coding it earlier today, Thanks for the reply's
Topic archived. No new replies allowed.