How spectrum data is calculated
I was wondering, could anyone tell me the correspondence between spectrum information and frequency in Winamp? I understand that there are 576 samples for each channel, but I don't understand how each sample corresponds to a given frequency, other than that lower indices of the spectrum array correspond to lower frequencies. If someone could tell me the relationship, I'd be greatly appreciative. Thanks a lot.