Audio lag in chrome mobile?

Discussion and feedback on Construct 2

Post » Sun Feb 01, 2015 3:14 am

As a prelude, yes, I am preloading my sounds.

I'm dropping some SFX into my current project, and damn, chrome mobile lags terribly. I'd guess it's around 0.5 seconds before a sound actually plays. And yes, that's every time, not just the first.

Weirdly, firefox mobile drops frames visually, but there is very little delay in triggering sound effects.

Is crosswalk like this too? I haven't tried a crosswalk export with sound yet...now I'm getting worried. :|
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sun Feb 01, 2015 10:32 am

Chrome mobile has sound decoding issues on android IIRC

https://code.google.com/p/chromium/issu ... ?id=424174

may be related.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Sun Feb 01, 2015 4:32 pm

I've had some audio issues even with desktop Chrome. I need music to loop back at a certain point, and since C2 doesn't have that functionality, the only way is to immediately play another instance of the music, and set the playback position; but in doing so there is an audible pause.

Related?
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826

Post » Sun Feb 01, 2015 9:59 pm

DatapawWolf wrote:I've had some audio issues even with desktop Chrome. I need music to loop back at a certain point, and since C2 doesn't have that functionality, the only way is to immediately play another instance of the music, and set the playback position; but in doing so there is an audible pause.

Related?


Well, we have that function, though I haven't tried it yet. Are you saying looping doesn't work?

https://www.scirra.com/manual/109/audio

^ Search for 'loop'.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sun Feb 01, 2015 10:08 pm

@TiAm I meant looping back to a specific time in the audio. So instead of loop to beginning, loop to position.

There is currently no good way to loop to a specific position without lag, as far as I know. Although now that I've read it again, there is one more thing I can try.

I will try to measure if the looping audio is > a certain point and then use seekto.
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826

Post » Sun Feb 01, 2015 10:44 pm

@DatapawWolf

Ah, ok, I see. I'll give your idea a try on my end too.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Fri Feb 13, 2015 7:38 pm

I notice the same audio lag too while using chrome on mobile devices. I tried to export my app using the Intel Xdk and the lag is still there in the exported version.
If anyone has any insight on getting audio to work well with mobile I would be interested. Figured I would post here instead of making a new topic because we are having similar issues.
B
3
Posts: 3
Reputation: 381

Post » Fri Feb 13, 2015 8:43 pm

Yeah, I still get this on chrome mobile, and also on crosswalk export, even with version 7. I've been meaning to file it as a issue on the chromium tracker, but just haven't got around to it yet.

It's odd too, because I can pretty much go nuts with web audio effects (and I don't have the greatest android device), but that lag just won't go away no matter how much I strip things down.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Fri Feb 13, 2015 9:05 pm

TiAm wrote:Yeah, I still get this on chrome mobile, and also on crosswalk export, even with version 7. I've been meaning to file it as a issue on the chromium tracker, but just haven't got around to it yet.

It's odd too, because I can pretty much go nuts with web audio effects (and I don't have the greatest android device), but that lag just won't go away no matter how much I strip things down.


I wrote this post back in June 2014, and it seems that the problem still exists in Chrome for Android and Crosswalk.
I made this video with lag measurements.
B
36
S
11
G
9
Posts: 399
Reputation: 10,283

Post » Fri Feb 13, 2015 9:30 pm

@cesisco

I bumped the post. It's not C2, but it's not android either because firefox mobile works fine.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Next

Return to Construct 2 General

Who is online

Users browsing this forum: BackendFreak, newt, rayolaser and 23 guests