Sound for android has lag in Unity 5.0, a way to reduce latency?

In my game, I need to shoot, hit, explode sound effect and they are all less than 1 second. However, when audio is played, it lags behind some specific devices.

HTC One M8: 0.4 second lag
Samsung Galaxy S6: 0.4 second lag
Samsung Galaxy S3: 0.4 second lag
Samsung Galaxy Tab 3: no lag
iPad Air: no lag

Any idea how to fix the problem?

I've already tried the following:

AudioSettings, best latency;
All audio data is wav;
All audio data is imported and compressed as PCM;
All audio data is "unpacked at boot";
AudioSources bypasses all effects;
There is a delays plugin for Android, doesn't seem to work on new Unity, no sound at all;
There is another audio plugin that has the same problem.

+3


source to share


1 answer


I have an s3 and I don't feel any lag behind the sound. Even with a large number of sound files playing and overlapping.

This makes me think that something else is causing the lag, which is causing your sound to do it.

Nothing posted here how you did it, or what other logic happens when the audio file receives Play () 'd



I've had similar effects on my s3 when using coroutines, but I ended up finding it was wrong, especially with coroutines.

Hope this is helpful anyway for you and good luck!

0


source







All Articles