Synchronizing graphics with audio

I'm wondering if there's an fft implementation from the sound buffer info to synchronize graphics with a sound file? I had a search and came up with nothing.

If not can someone more experienced tell me roughly what I would need to consider/do?

Right I've had a look at the JOAL site, and can't figure out how to get the data from the buffer and apply it to the FFT algorithm. Any ideas how to get the data from the buffer? Please tell me this is possible, it's such a basic thing to want to do that any audio game library sholud just do this in my opinion…