The context of this issue is related to the auto-pause feature introduces in a recent version of this library.
Steps to reproduce:
- Start playing a sound
- Blur the window
- Something must stop the sound i.e. an event listener which calls
.stop()
- Focus the window again
- Observe the sound continues playing when it should not
As a workaround you must disable the auto pause feature using
PIXI.sound.disableAutoPause = true;
Example:
https://stackblitz.com/edit/js-mhehrg?file=index.js