[r195] "Is Any/Tag Playing" does not fire correctly.

Bugs will be moved here once resolved.

Post » Wed Feb 18, 2015 9:32 pm

Problem Description
When the playback rate of a sound is lowered, the "Is Any Playing" and "Is Tag Playing" conditions of the Audio object return false while the audio is still playing.

Description of Capx
There are two buttons: one plays a tone at 1x speed, the other at 0.5x. The text reflects whether the audio is playing or not. Try playing the tone at 0.5x and you will observe that the text says "Not Playing" while the tone is still clearly playing.

Steps to Reproduce Bug
  • Step 1: Create an action that plays a sound.
  • Step 2: Follow with an action that lowers the sound's playback rate.
  • Step 3: Create a condition that tests whether the sound is playing.
  • Step 4: Set a Text object to "Playing" when the sound is playing, and "Not Playing" when it isn't.

Observed Result
Text switches to "Not Playing" before the sound has completed.

Expected Result
Text should switch to "Not Playing" after the sound has finished playing. This should take into account playback rates varying as the sound is playing. Only once the sound has truly completed should the condition return false.

Affected Browsers
  • Chrome: YES
  • Firefox: YES
  • Internet Explorer: Can't tell, sound is broken for me in IE11.

Operating System and Service Pack
Windows 7 Home Premium SP 1

Construct 2 Version ID
You do not have the required permissions to view the files attached to this post.
Posts: 196
Reputation: 2,053

Post » Mon Feb 23, 2015 1:02 pm

Thanks, should be fixed in the next build. Note the reason IE11 doesn't play audio is because you didn't provide a .m4a version of the sound.
Scirra Founder
Posts: 25,188
Reputation: 200,307

Return to Closed bugs

Who is online

Users browsing this forum: repkino and 1 guest