-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HTML5] Audio glitchy on mobile device #299
Comments
Audio is fine on my Nexus 7. Can you try without Audio2 (commenting out the line in SystemImpl where it is initialized)? |
(Can confirm the laggy/glitchy audio on Galaxy S6.) |
Hm, maybe we should make Audio1 the default for HTML5 as long as devices are around which can not handle Audio2. |
@RobDangerous if I comment the audio2 code in SystemImpl, there is completely no audio in my game. (i'm assuming it's this, btw):
@miere42 I think the input issue is a bug on my side. I do a manual check -- if player is on mobile device, they can only use touch, and if they're on desktop, they can use mouse or keyboard. Looks like windows device doesn't work as intended :( |
Hi, any updates on this? |
Did some work on that last night but it looks like I'll have to implement a third html5 audio backend for it to really work reliably. At least I now understand the problems (mobile browsers only start audio in response to input events + performance worries). |
Thank you @RobDangerous ! I've updated my game based on latest commit. The audio for BGM and button-click is now working (in mobile chrome, on my Samsung S4), although the other sound effects (player deaths) aren't working, but I guess that's good enough for now. Looking forward to full fix :3 |
Hey, this is all done. |
I'm on the Samsung Note4, using Chrome browser. The audio is laggy/glitchy. Here's the link to my game for your testing: http://coinflipstudios.com/adventuroads/
The text was updated successfully, but these errors were encountered: