jeudi 6 avril 2017

as3 decode mp3 into raw sound data

My function for sound object plays byteArray data via SampleDataEvent.SAMPLE_DATA handler.

It normally plays byteArray data taken from a mike, but mp3 file should be decoded to be played. How to 'convert' mp3 file data into byteArray with a raw sound, which can be played by sound's SampleDataEvent.SAMPLE_DATA?

flash player is v10, so loadCompressedDataFromByteArray() doesn't work.

Aucun commentaire:

Enregistrer un commentaire