Skip to content
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 resumeAll() on a sound sound that wasn't paused causes the sound to duplicate #137

Open
miltoncandelero opened this issue Jul 22, 2020 · 1 comment

Comments

@miltoncandelero
Copy link
Contributor

Playground:
https://www.pixiplayground.com/#/edit/WRwNb_3nWsq7H-q2JDm4y

Platform:

  • Chrome 84.0.4147.89
  • Windows 10 OS Version 1909

Steps to recreate in the provided playground:

  • If the sound isn't playing in loop, click on the background to unlock the audiocontext (Not on the bunny.)
  • Listen to the whistle loop
  • Click on the bunny (the bunny is wired to fire PIXI.sound.resumeAll())
  • The sound will sound differently or overlap with itself.

Notes:

  • To test again, refresh the page.
  • The problem doesn't seem to stack infinitely, it is only one time that the sound duplicates.

Blind guess:

  • Maybe a variable for isPlaying is not initialized correctly?
@andrew-ntk
Copy link

Hi, I am having the same issue. Is there a way to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants