views:

157

answers:

1

Hello!

I have a speaker and I need this speaker moves with a sound. I need to simulate the real world speaker vibration generated by the low and mid frequencies.

Does not have to be soo realistic what I whant to know is how I can play a sound and get son mumerical value usefull for apply numerical size transformation to the speaker.

Cheers!

+1  A: 

You can detect the amplitude of a sound in AS3 using the SoundMixer.leftPeak and SoundMixer.rightPeak methods: there's a nice example here...

Richard Inglis
Thanks a lot Richard. Really helpfull your answer.
Deryck
Your welcome, Deryck - if you'd like to 'accept' my answer by clicking on the check-mark, that would help me a lot, thanks.
Richard Inglis