Sound stop playing after a short break of inactivity

Bugs will be moved here once resolved.

Post » Mon Dec 28, 2015 5:18 pm

Problem Description
Sounds stop playing when you leave the application running without interactivity for more than a minute and a half on a mobile browser. The debug console shows the sound as playing and it never ends. Music is unaffected, only sounds are affected.

As a result of this issue my published games (Intel SDK - Android export) seem to lose sound if the are not interacted with for more than a minute and a half.

Attach a Capx
https://www.dropbox.com/s/y1jq972kwcabhy2/TestApp.capx?dl=0

Description of Capx
This capx has a orange button, on touch, it will play a sound.

Steps to Reproduce Bug
  • Step 1 Run capx in preview, preview on device in debug mode
  • Step 2 Touch the button, you will hear the sound
  • Step 3 Now, leave app open for more than a minute and a half or so
  • Step 4 Touch the button, no sound will be heard

Observed Result
Looking under the debug information under audio, you will see the debug info indicate that sound is being played, yet no sound is audible, also, the debug information for the sound played is never cleared, more pushing of the button results in debug information being appended to the debug output.

Expected Result
When I touch the button, I should hear the sound being played.

Affected Browsers
  • Chrome: (YES) - This is chrome on device, doesn't seem to affect PC browsers.
  • FireFox: (N/A)
  • Internet Explorer: (N/A)

Operating System and Service Pack
Windows 10

Construct 2 Version ID
R216 (64 Bit)

Observed Debug Information

The playing sound grows longer and longer, while it appears to be playing sound, no sound is actually audible, plus the playing sound never clears and just appends.

Image
B
7
Posts: 13
Reputation: 310

Post » Tue Dec 29, 2015 9:35 am

I've noticed the same thing with my app.
B
15
S
5
Posts: 124
Reputation: 1,677

Post » Tue Dec 29, 2015 1:11 pm

Came across something similar to this.
B
13
S
4
G
1
Posts: 18
Reputation: 1,081

Post » Thu Jan 07, 2016 2:48 pm

This appears to be a bug in Chrome. Star this report to follow updates: https://code.google.com/p/chromium/issues/detail?id=518863

I think I found a workaround which I've integrated in to the next build: it will play a silent sound every 25 seconds, to avoid the 30 seconds of silence detection which seems to shut down Web Audio. It seems to work here, but I'm not sure if it covers every possible case. Anyway, star the issue and hopefully Google will fix the real problem soon.
Scirra Founder
B
378
S
220
G
84
Posts: 23,863
Reputation: 188,019

Post » Thu Jan 07, 2016 4:04 pm

Great! More attention to this problem!

Looking forward to a fix!

By the way - the problem also appears on Android for sure and appeared on iOS several months ago.

Never happened on PC

Thanks all!
Positive, inspiring and jazzy games!



www.crystalgames.space



Enjoy!
B
17
S
8
G
3
Posts: 173
Reputation: 3,453

Post » Mon Jan 11, 2016 2:23 pm

Ashley wrote:This appears to be a bug in Chrome. Star this report to follow updates: https://code.google.com/p/chromium/issues/detail?id=518863

I think I found a workaround which I've integrated in to the next build: it will play a silent sound every 25 seconds, to avoid the 30 seconds of silence detection which seems to shut down Web Audio. It seems to work here, but I'm not sure if it covers every possible case. Anyway, star the issue and hopefully Google will fix the real problem soon.


Thanks for the prompt fix, I will star the report.
B
7
Posts: 13
Reputation: 310

Post » Tue Mar 29, 2016 7:05 pm

@Ashley
Hi,
this bug still persist, i have Release r224 of construct.
workaround not work?
Image
B
14
S
6
G
5
Posts: 99
Reputation: 3,825

Post » Wed Mar 30, 2016 9:08 am

same problem here with Chrome for android 6.
B
28
S
11
G
18
Posts: 694
Reputation: 12,602

Post » Wed Mar 30, 2016 3:25 pm

If you look at the linked bug report, Google apparently fixed the bug for v49, which is now out. Are you sure your version of Chrome for Android is up-to-date?

We removed the workaround from the latest betas because it caused as many problems as it solved.
Scirra Founder
B
378
S
220
G
84
Posts: 23,863
Reputation: 188,019

Post » Wed Mar 30, 2016 4:56 pm

Ok, the error seems to have disappeared with chrome for android version 49.0.2623.105
Last edited by The Mnk on Wed Mar 30, 2016 6:21 pm, edited 1 time in total.
B
28
S
11
G
18
Posts: 694
Reputation: 12,602

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests