Fmod on Android Play sound system jitter problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.