Hi guys.
I'm working on connecting a new 3D audio headset with Unity 5.2.2f1 and Wwise 5.1.2. So far everyone goes right except when the headset is connected via wireless Bluetooth and when I use Wwise. I get voice starvations in the profiler when running the app on Android, and the audio is stuttering. If I circumvent Wwise and just play audio from an audio source in Unity and profile this in Wwise, I still get messages of voice starvation, but the sound is without stutters, so really it's working fine. In short this is the outcome of my experience with and without audio cable between the headset and the Android phone:
Cable + Unity audio = No Voice Starvation messages, No Stutters
Bluetooth wireless + Unity audio = Voice Starvation messages, No Stutters
Cable + Wwise audio = No Voice Starvation messages, No Stutters
Bluetooth wireless + Wwise audio = Voice Starvation messages + Stutters
I have a log snippet of the voice starvation messages in Wwise here: https://dl.dropboxusercontent.com/u/9959158/AWE/Wwise-Profiler-Log-BluetoothHeadsetVoiceStarvationIssue.prof
On this page https://www.audiokinetic.com/library/2015.1_5418/?source=Help&id=setting_output_buffer_latency you can set the buffer latency for Wwise authoring tool itself.
Is it possible to adjust something similar like this for the various devices Wwise eventually will be deployed to? I want to be able to use a BT device without Wwise + Unity creating voice starvations.
In Unity I have tried setting DSP Buffer Size in AudioManager to Default, Best Latency and Best Performance without better results. I tried changing sample rate lower without better results. I use Vorbis format but tried packing the soundbank with Wav PCM files instead in Wwise to no succes either. I even tried removing all Wwise audio sources in Unity, started profiling the app, and it still gives me voice starvations despite no audio is playing! The Audio CPU usage has never been over 8%, and usually hovers around 3-5%, with about 0.8% without any audio sources.
All in all it seems like Wwise doesn't like bluetooth wireless connections? Can someone please help me figuring out what's wrong with this?