[r200] "Is Any/Tag Playing" doesn't function correctly

Bugs will be moved here once resolved.

Post » Fri Mar 27, 2015 1:09 am

Problem Description
When the rate of a sound is altered throughout the course of its playback, the "Is Any Playing" and "Is Tag Playing" conditions of the Audio object return incorrect results; either 'true' while playback has stopped, or 'false' while playback is still in progress.

Attach a Capx
http://parthdalal.com/PitchBug.capx
(it won't let me attach files to the post anymore)

Description of Capx
Click the 'Start Demonstration' button to play a sample with a continually changing playback rate. The text is supposed to reflect whether the audio is playing or not. You will observe that near the ending of the sound, the text will change at the incorrect time, either showing 'Not Playing' while its still playing, or 'Playing' after it has ended.

Steps to Reproduce Bug
  • Step 1: Create an action that plays a sound.
  • Step 2: Follow with actions that change the sound's playback rate multiple times while it's playing (e.g high for a second, low for another).
  • 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, or it remains "Playing" even after the sound has completed.

Expected Result
Text should accurately reflect whether the sound is playing or not.

Affected Browsers
  • Chrome: YES
  • Firefox: YES
  • All Others: Not Sure
Operating System and Service Pack
Windows 7 Home Premium SP 1

Construct 2 Version ID
r200.
Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053

Post » Mon Mar 30, 2015 2:12 pm

Should be fixed in the next build, thanks.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,250

Post » Mon Mar 30, 2015 5:51 pm

Awesome! Thank you!
Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053

Post » Tue Mar 31, 2015 12:22 pm

Nice
B
86
S
25
G
11
Posts: 652
Reputation: 11,045

Post » Fri May 08, 2015 4:26 pm

Similar problem here.
I stop the sound by clicking in a button, then when I click again to play the same sound, even if I use Trigger Once, the sound plays twice.
I think I'll have to use a auxiliar variable to make it work.
B
4
Posts: 4
Reputation: 214


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests