Flash computeSpectrum() unsynchronized with audio

Posted by sold on Stack Overflow See other posts from Stack Overflow or by sold
Published on 2010-03-15T14:47:59Z Indexed on 2010/03/15 14:49 UTC
Read the original article Hit count: 333

Filed under:
|
|
|
|

I am using Flash's (CS4, AS3) SoundMixer.computeSpectrum to visualize a DFT of what supposed to be, according to the docs, whatever is currently being played. However, there is a considerable delay between the audio and the visualization (audio comes later). It seems that computeSpectrum captures whatever is on it's way to the buffer, and not to the speakers.

Any cure for this?

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3