Skip to content

Calling resumeAll() on a sound sound that wasn't paused causes the sound to duplicate #137

Closed

Description

@miltoncandelero

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?

Activity

  1. andrew-ntk commented on Dec 16, 2020

    @andrew-ntk

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

  2. zbdd commented on Oct 30, 2026

    @zbdd
    Collaborator

    Fixed in #295. Resuming no longer restarts instances that weren't paused, so they can't double up or get stuck playing. It'll be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions