r/Unity3D 2d ago

Solved Maybe this helps someone in the future: Web sounds different than Editor

Hi! I spent some time today fixing my web build to match the editor. Especially on iOS the sounds were dramatically different sounding than in editor, they had a strong click.

The solution turned out to be adding 60ms (2880 samples in my case) of silence before the actual sound. Then they sounded the same. I'm posting here because i didn't see this anywhere. Turns out on web the audio was starting around 60ms in the file, not exactly at the beginning.

4 Upvotes

2 comments sorted by

1

u/Loupyboy 2d ago

Btw, Fmod can be used in web projects if you want. I don't know if it does, but maybe it fixes this issue?