hello,
I havent posted here in a while but I have recently actionscript 3 back up. I have been trying to learn how to use all the sound classes and wanted to know if there is anyway to analyze the sound spectrum or the relative loudness of a song without playing it?
All the examples I seen get the SoundChannel.leftPeak and use the SoundMixer.computeSpectrum while the song is being played. However I need to be able to preload the song to know get the values before the song starts for visualization that would synch to the song during runtime. Is it possible to do that?
I tried putitng this in enter frame but it didnt work:
_channel = _sound.play(_currPosition);
trace(_channel.leftPeak);
_channel.stop();
_currPosition+=100;
I got bunch of 0s instead of the leftPeak; I also tried putting it in a timer and that didnt work either.
Any help would be appreciated.