views:

56

answers:

1

So If I play one sound I use

sound = new Sound(); ...
sound.addEventListener( SampleDataEvent.SAMPLE_DATA, onSampleData);
sound.play();

And so I'll get data, but If I have 20 sounds playing and I want to get data from the sound I here as a resalt of data mix of all that sounds... How to get it?

+1  A: 

You can use SoundMixer.computeSpectrum(). It won't fire an event during each sample, but it will create a ByteArray with all the sound data mixed together. You can then manipulate that data.

Mims H. Wright