1. Basic Introduction
After the Android upgrade system Android4.4, found Fmod in the Android sound will appear jitter. Cause the sound to be abnormal. There are problems with the famous "Need for Speed".
It is fmod that the DSP Buffer size does not match the period size of the audio Hal in Android.
The default DSP Buffer size in fmodex.so is 512, and it is learnt that the period size of the audio HAL now expands to 1024, or 2048, or 4096.
2. How to Solve
To make your game more compatible. The Fmod DSP Buffer Size needs to be set, as in the solution on my box such as the following:
Fmod_result RESULT = fmod_ok;unsigned int bufferlength;int numbuffers; result = Fmod_system_create (&gsystem); Check_result (result); result = Fmod_system_getdspbuffersize (gsystem,&bufferlength,&numbuffers); Check_result (RESULT); LOGD ("idong:bufferlength=%d,numbuffers=%d", bufferlength,numbuffers); result = Fmod_system_setdspbuffersize ( gsystem,4096,4); Must be before fmod_system_initcheck_result (result); result = Fmod_system_init (Gsystem, +, fmod_init_normal, 0); Check_result (RESULT);
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Fmod on Android Play sound system jitter problem