Description
I'm using SoundJs in createjs-2015.11.26
I'm aware that this is quite old, but it's the one still used by Adobe Animate when exporting to HTML5. I've tried createjs 1.0 but this causes graphical errors with Animate.
The symptom is that occasionally a sound will start playing and then cut off. It's a fairly rare occurrence.
I have been unable to find any particular pattern to this. It can be a long sound or a short sound. It happens both when using localhost or a real internet connection. It does appear to be a soundjs issue rather than Adobe Animate, since it can also happen when I play audio directly from my own code (i.e. not from the Animate-generated code). It can happen on a very simple Adobe Animate export, so I'm sure it's not some other interaction with my code. I'm using the default playback (WebAudio).. I tried HTMLAudio too but that didn't work correctly for me on Android.
The problem has happened on a variety of devices (Windows, iOS, Android) and on a variety of browsers (Firefox, Chrome)
When the error happens, the audio file is reporting a correct duration and nothing abnormal appears to have happened during the download, i.e. it seems like a playback issue.
Edit: in fact, this may be a duplicate of #302
I have found Chrome is much more often causing the issue, and Firefox very rarely.
On this test file we're getting audio cut off almost every time on Chrome: http://www.psychicsoftware.com/newbychinese/test/NiHao.html