Description
Issue Details
-
Version used: 1.0.0
-
Describe whats happening (Include any relevant console errors, a Gist is preferred for longer errors):
Note, this issue is not about Chrome's auto-play policy change, though it may relate to their rollback.
Using createjs.Sound.registerSound
/createjs.Sound.play
to play a sequence of MP3s will occasionally cause audio to cut off. Investigating further I found that there's a correlation between advancing sounds while Chrome's speaker icon is fading out. (i.e. the AudioContext disconnecting) The issue will not manifest if you click through very rapidly or conversely, wait for the previous source to fully disconnect.
-
OS & Browser version: macOS High Sierra 10.13.4 / Chrome 67.0.3396.79. Additional reports on Chrome/Windows
-
Do you know of any workarounds?
No, however attempting to console.log instance.sourceNode
(even while DevTools are closed) causes the problem not to manifest, as though the additional function calls were enough to defer the event to a subsequent frame in the event loop.
I'm hoping switching to PreloadJS' LoadQueue
might not be subject to the same issue and will try that next.
- Provide any extra details that will help us fix your issue. Including a link to a [CodePen.io]
I've created an isolated test case at http://gallery.wi.tt/createjs-chrome-67/. Note that DevTools should not be open. This obviously makes it difficult to debug; In some cases (other than that mentioned above) I've found I can console.log certain data and then wait for the issue to reproduce before opening DevTools to see what's in the console.