howler.js icon indicating copy to clipboard operation
howler.js copied to clipboard

HTML5 mode fails to stop sprite playback when sound played repeatedly

Open damrbaby opened this issue 4 years ago • 1 comments

After upgrading Howler from 2.2.1 to 2.2.3, and using HTML5 mode on Safari 15 as a work-around for Catalina (#1513), I identified a bug where audio sprites fail to stop playback after the desired sound has played:

  1. Play a sound from an audio sprite over and over again in HTML mode, so that the sound plays again while the previous sound is already playing.
  2. Keep doing this until you observe that the audio sprite fails to stop playing, and continues to play through the rest of the audio file, confusing end users with all of the unexpected sounds!

This is always an issue on Internet Explorer 11 with the latest howler version, since IE uses HTML5 audio.

I identified this as a regression from 0323af9b843351cacc47893aed8e65cd8ba3b0cb (fix for #1439). I do not know if this PR will re-introduce that bug. It definitely solves this new issue though (I'm using this fix in production and confirmed it solves the problem on Safari 15 with HTML5 mode and IE11).

damrbaby avatar Sep 28 '21 18:09 damrbaby

Unfortunately, this change reverses what fixed #1439 and causes that issue to start happening again.

goldfire avatar Dec 19 '21 23:12 goldfire