joshwcomeau / use-sound

A React Hook for playing sound effects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sound played with delay on phone

webdiego opened this issue · comments

Sound played with delay on phone

I noticed that the sound is reproduced perfectly, at the right times on the PC; on the contrary on smartphones it is reproduced with a slight delay.

Yeah, so I've heard that Android phones in particular have wildly-inconsistent audio latency, sometimes on the order of hundreds of milliseconds.

I don't think that this is a problem that can be solved in JS. If it could be, I imagine that Howler (the dependency I'm using for the actual audio playback) would have solved it by now =(

I hope someday it settles down.
Thanks josh for the explanation and for this beautiful tool! :)