Construct-bugs icon indicating copy to clipboard operation
Construct-bugs copied to clipboard

Audio : Keeps playing for few ticks after stopping it

Open Kashin-Ginn opened this issue 1 year ago • 0 comments

Problem description

Audio keeps playing after few ticks after using stop audio tag in action

Attach a .c3p

bug_audio_onLayoutRestart.zip

Steps to reproduce

Just spam SPACE in the project, the following steps will be done automatically

  1. Stop audio "soundTag"
  2. Restart
  3. Check if audio "soundTag" is playing or not
  4. If audio tag not playing, then play

Observed result

After spamming SPACE to stop sound tag and restart the layout, the audio sound keeps playing for few ticks, so the next condition "is audio tag playing" sometimes returns true

Expected result

Audio should stop playing instantly after stopping it, so that the next condition to check if it is still playing should returns false

More details

Affected browsers/platforms: Chrome (not sure about others)

First affected release: This project is from latest r396, not sure about older versions

System details

No crash, just a simple C3 bug, easy to reproduce

View details

PASTE HERE

@AshleyScirra

Kashin-Ginn avatar Jun 22 '24 08:06 Kashin-Ginn