-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling .stop() on a sound whilst the browser window is blurred does not actually stop the sound #258
Comments
Thanks for the detailed bug. That makes sense. Will look at it soon |
I'm seeing this same issue, though my repro steps are slightly simpler
I believe what's happening is that when I've only looked at the v4 code, but here's the instance stop: sound/src/webaudio/WebAudioInstance.ts Lines 111 to 115 in a84c214
and here's the _onComplete: Lines 766 to 776 in a84c214
|
I'm having some issues creating a fork right now, but this snippet seems to have fixed this issue in sound v4 in my project:
|
I'm having the same issue, is there an ETA for the fix? Version 5.2.3. Thank you! |
I did some digging and problem seems to be lying in |
I've tried but your PR is on top of pixi/sound v6.0 which depends on pixijs v8, while I'm using pixijs v7.2.4. |
The context of this issue is related to the auto-pause feature introduces in a recent version of this library.
Steps to reproduce:
.stop()
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
The text was updated successfully, but these errors were encountered: