Android Bluetooth Audio Problems while using FMOD v1.09.03

We’ve come across an issue where audio played through bluetooth headphones will playback at a low quality, with a lot of stutter/lag. This only happens on Android.

To give a little context:

  • We’re not using Unity’s built-in audio system. We’re using the FMOD Studio API for Unity, v1.09.03
  • The issue only happens on Android, for users using bluetooth headphones

We’re able to kinda fix the issue by setting FMODUnity.RuntimeManager.LowlevelSystem.setDSPBufferSize(2048, 4); before FMOD initialisation (from within the FMODUnity.RuntimeManager class) but this introduces a 1s audio lag across all platforms.

We’re not able to set the DSPBufferSize dynamically after initialisation (unless I’m missing something) which means we can’t dynamically set this for only users who are using bluetooth headphones. So implementing this “fix” would introduce the 1s audio lag for all users, which isn’t acceptable.

Has anyone had this issue? If so, was anyone able to resolve it?

I think this might be bluetooth switching to lower quality protocol -
you can try finding out if it’s possible to force android to use something else like aptX
( this is where I saw this How to Enable the Optimal Audio Codec for Your Bluetooth Headphones in macOS - MacRumors , its mac specific sorry :slight_smile: