Hello there,I come from China.Please forgive my poor English.
I’m working on a rhythm based game on Unity 2018.3 these days, and my friend recommended me to use FMOD.
So I downloaded FMOD Studio 1.10.10 and Unity integrations 1.10.10 . I found FMOD have so many powerful functions, but when I tried to use it, there is a really serious problem. LATENCY… I read many articles to solve the latency, such as:
-Close the “stream” switch in FMOD Studio’s Audio Bin
-Covert the Audio file from .wav to .mp3
-Add some code in FMODFMOD/RuntimeManager.cs “lowlevelSystem.setDSPBufferSize(256, 4);”
finally there is still some latency to play my sfx.
I have a simple test to the latency:
//here is my code
//call a FMOD’s PlayOneShot() to play a snare hit
//use unity native AudioSource’s Play() to play the same clip
and when I press K and L at the same time，it comes out two separated sounds.
when I press K a little bit earlier, it sounds like one sound. I know latency is a complicated issue, but why FMOD is slower than Unity AudioSource?
thank you very much!