computeSpectrum + audio source question

Like many others I really like computeSpectrum :slight_smile: That said, there’s something I want to do and I don’t know if it’s possible.

In every example that I’ve seen (and in my own experience working with it) computeSpectrum functions on all audio currently being output by Flash. What I want/need to do is target the spectrum/FFT stuff to only one channel of audio. What I mean is, I want to get and display spectrum data on some playing audio (ie: an .mp3), but at the same time I want to be able to play other audio (ie: interface sound effects) that does not interfere with that spectrum.

Is there any way, obvious or not, to accomplish this? I could easily be missing something.

Here’s one non-obvious method that I thought of: Perhaps there is some way to quickly capture the entire spectrum data of the entire .mp3 ahead of time and then use that data to provide the spectrum while *really *playing back the .mp3. If nothing else is possible, is this at least possible somehow, or does computeSpectrum -only- work in realtime on playing audio?

Does anyone have a magical solution for me? :huh: