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.