CreateJS / SoundJS

A Javascript library for working with Audio. It provides a consistent API for loading and playing audio on different browsers and devices. Currently supports WebAudio, HTML5 Audio, Cordova / PhoneGap, and a Flash fallback.
http://createjs.com/
MIT License
4.42k stars 838 forks source link

the Sound.play does not work when the fileload event. #271

Closed AsJoy closed 6 years ago

AsJoy commented 7 years ago

the Sound.play does not work when the fileload event. does it because the audio has not been decoded from ArrayBuffer? if so, is there any event after The audio decoded my code is given below:

  loader.addEventListener('fileload', e => {
    Sound.paly('bgm')
    res(e)
  })

== I'm sorry about My English

lannymcnie commented 6 years ago

Can you provide a sample? The fileload definitely fires after the buffer is decoded. I am marking as "can not reproduce" unless you can provide reproduction steps.