Skip to content

Method restart() of the class Phaser.Sound doesn't restart sound if it playing and play two sound parallel #1136

@wombatbuddy

Description

@wombatbuddy

If the sound is already playing and you call the method restart() then both sounds are playing parallel.
This problem occurs if the sound is already playing and you call method play() with forceRestart = true.
To work around this problem, you can call the stop() method befor call restart() or play() methods.

Environment:
Phaser 2.0.7
Phaser 2.0.6

iPad 2 (Safari, Chrome)
Desktop (Chrome, Opera, Mozilla Firefox).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions