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

End event not firing with audiosprite #307

Open praine opened 5 years ago

praine commented 5 years ago
                var instance=createjs.Sound.play("voice_start",{
                    startTime:startTime,
                    duration:duration
                });

                instance.on("end",function(){
                    // do something
                });

"end" event is not firing

mymomscrazy commented 5 years ago

Thanks

gSkinner-Blair commented 5 years ago

Hey there,

In SoundJS 1.0, the event is "complete", not "end". Change it to that, and it should work!