Loss of audio

Bugs will be moved here once resolved.

Post » Thu Dec 10, 2015 12:42 pm

Problem Description
Total loss of audio for a game when Android device wakes up after a few min sleep. The game was running in a Chrome tab before the locking of the screen.


Steps to Reproduce Bug
    [1] Start the game
    [2] Wait for the device to go to sleep while the game runs
    [3] Wait 5mins
    [4] Unlock the device and see the audio disappear

Observed Result
Audio disappears

Expected Result
Audio continues to be active when the screen is unlocked.

Affected Browsers
    [1] Chrome for Android: (YES)

Operating System and Service Pack
Windows 10

Construct 2 Version ID
216 64bit
Last edited by Ignaci on Wed Aug 17, 2016 11:04 am, edited 2 times in total.
Positive, inspiring and jazzy games!

www.crystalgames.space

Enjoy!
B
17
S
8
G
3
Posts: 174
Reputation: 3,455

Post » Wed Dec 16, 2015 6:06 pm

Does this still reproduce in r218?
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Fri Dec 18, 2015 8:58 pm

Yes. Just tried with r219. The problem persists..

+ Audio disappears not only when Android goes to sleep automatically, after a while, but also if locked manually and unlocked after ~10mins and going back to the game..
Positive, inspiring and jazzy games!

www.crystalgames.space

Enjoy!
B
17
S
8
G
3
Posts: 174
Reputation: 3,455

Post » Fri Dec 18, 2015 10:04 pm

I have had this same happen in my project of 1 year of age... I think it started happening around r212 or a bit after - not entirely sure anymore. The strangest thing is that my menu music seems to continue to work just fine (but all other audio doesn't, sound effects, level musics etc).. :o
B
14
S
3
G
1
Posts: 78
Reputation: 1,037

Post » Sat Dec 19, 2015 8:12 pm

I've experienced this too, few months ago. Music keeps playing but sounds stop. :)
Positive, inspiring and jazzy games!

www.crystalgames.space

Enjoy!
B
17
S
8
G
3
Posts: 174
Reputation: 3,455

Post » Tue Jan 05, 2016 9:38 am

Happy New Year @Ashley !

How is this issue doing? :)
Positive, inspiring and jazzy games!

www.crystalgames.space

Enjoy!
B
17
S
8
G
3
Posts: 174
Reputation: 3,455

Post » Tue Jan 05, 2016 11:35 am

Well, the problem makes very little sense, because the age of a .capx should not affect anything. If you can provide any more information to narrow down the cause of the issue that would be very useful. In particular identifying the specific version of C2 where the problem started is always useful.
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Tue Jan 05, 2016 1:14 pm

The sound pretty often mutes after spending some time outside of a game (locked screen or doing other stuff while the game's tab is active in background)

This problem appears on my Android Sony Xperia Z3 compact and I also experienced the problem on my girlfriend's Samsung Alpha and also iOS some time ago.

(Everything's on Chrome)

Looks pretty important to me ;) . I also understand that it could be Chrome's bug, so I will report this to them

P.S. You can try to reproduce this with any C2 web exported game. Just lock the screen, wait for like 10mins and/or do some stuff in background and/or wait for your device to go to sleep and wake it up after ~10mins and the sound could be gone.

Thanks! :)

Will try to find a workaround to avoid this
Positive, inspiring and jazzy games!

www.crystalgames.space

Enjoy!
B
17
S
8
G
3
Posts: 174
Reputation: 3,455

Post » Tue Jan 05, 2016 2:48 pm

Changed Audio not to play in background and deleted the events which stopped the audio when tab was suspended and started audio again when tab was resumed (workaround that no longer works).

Looks like the problem is solved. Can't reproduce it.

Will let You know if I will able to reproduce it.

Thanks ;)
Positive, inspiring and jazzy games!

www.crystalgames.space

Enjoy!
B
17
S
8
G
3
Posts: 174
Reputation: 3,455

Post » Wed Jan 06, 2016 1:24 pm

The sound still occasionally goes off when coming back to the game's tab after a while. It could be Chrome's stuff :)

Reported this to Chrome and just going to let this go off my mind :)
Positive, inspiring and jazzy games!

www.crystalgames.space

Enjoy!
B
17
S
8
G
3
Posts: 174
Reputation: 3,455

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 11 guests