Audio issues on Stock Android phones!? it's mad!

Get help using Construct 2

Post » Wed Feb 25, 2015 1:45 pm

I am having a few problems with audio on stock android phones like Xperia A Stock and sharp mini Stock.

Among the issues are:

Putting the phone to sleep and the music continues to play.
Music mutes after a couple taps of the screen.

Anyone had issues like this?

Is it possible to check the type of phone and disable the audio?

Any help appreciated :)
Some games: https://play.google.com/store/search?q= ... s&hl=en_GB Feel free to show the panda some support, he would appreciate it :)
B
18
S
5
G
1
Posts: 155
Reputation: 1,594

Post » Thu Feb 26, 2015 1:52 am

had similar problems with my games , its not only stock mobile phones, all phones do that, depends on how big is your file, for some reason does not kill the sound when u close app(that naturals for most new mobile phones its not completely close but close to background that means will keep playing and u have to go to your background apps then kill the remaining program) however i do not know how to detect the phone buttons, to be able to call them and close app when that is pressed and not naturally to go to background. (basically it acts like go back button)
ImageImage
B
54
S
14
G
64
Posts: 1,252
Reputation: 39,500

Post » Thu Feb 26, 2015 8:48 am

It seems to be phones with stock android browsers where the most problems are. The files are small but the music plays, the phones can go to sleep without pressing any buttons too so cant use that to stop the audio.

If there was a reliable way to check what browser was being used then I could disable the audio accordingly, but so far haven't found a way.
Some games: https://play.google.com/store/search?q= ... s&hl=en_GB Feel free to show the panda some support, he would appreciate it :)
B
18
S
5
G
1
Posts: 155
Reputation: 1,594

Post » Sat Feb 28, 2015 2:22 pm

Not sure, but maybe the browser object condition "on suspended" triggers when the phone goes to sleep (if so, you may be able to cut the sound when it triggers).
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
43
S
18
G
17
Posts: 2,098
Reputation: 15,905

Post » Tue Mar 24, 2015 1:39 pm

Bump? I got this issue too, tried using 'On suspended' trigger, but it still bugs. Anyone got other ideas?
B
5
Posts: 2
Reputation: 231


Return to How do I....?

Who is online

Users browsing this forum: Biim, Rudi55 and 26 guests