- Home /
How to enable more than 2 output channels in a native audio spatializer plugin?
We are currently developing a spatializer plugin based on the native audio sdk on Ubuntu 18.04.
The goal is to use the provided input buffer and 3D position of a mono audio source to compute the output buffers for 8 speakers that are placed in each corner of a room (4 at the bottom and 4 at the ceiling). The problem is that unity provides only 2 output channels no matter what setting is chosen in the audio preferences. If we choose mono, we get 1 channel, everything else results in 2 channels, even the 7.1 surround option.
How can we enable more than 2 outchannels
in the ProcessCallback()
function?
We are using Unity 2019.2.0f1 on Ubuntu 18.04 but also experienced the same issue with earlier Linux builds. Unfortunately, we are not able to test the code on a Windows machine due to our hardware setup and can therefore not provide any comparison regarding platform specificity.