How to play MP3 sound from buffer (ByteArray/Stream) in ActionScript 3?

后端 未结 3 2066
庸人自扰
庸人自扰 2021-02-05 18:19

So.. I have a buffer with MP3 data (If I would save this buffer and call it buffer.mp3 it would play, but in this situation I should not save it to file system)

3条回答
  •  臣服心动
    2021-02-05 18:58

    This one doesn't work since SampleDataEvent.data expects uncompressed raw sample data, not MP3. Use https://github.com/claus/as3swf/wiki/play-mp3-directly-from-bytearray instead.

提交回复
热议问题