Skip to content

Animation-bound sound keeps playing after the animation stops #1376

@nighca

Description

@nighca

Background

In spx, an animation can bind to a sound so that the sound is played automatically while the animation is playing.

There is currently a bug in this behavior: after the animation stops, the bound sound does not stop with it and keeps playing.

Reproduction

A reproducible example is available here:

Steps:

  1. Open the project above
  2. Click somewhere on the grass so the cow starts walking toward that position
  3. Wait until the cow finishes walking

Actual behavior

  • The walking animation stops
  • The walking sound keeps playing after the animation has already stopped

Expected behavior

  • The walking sound should stop when the animation stops
  • After the cow finishes walking, there should no longer be any walking sound

Notes

This issue is about animation-bound sound lifecycle. If a sound is started automatically because of an animation binding, it should also stop automatically when that animation ends.

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