Develop an ambisonic audio decoder
Instructions for implementing an ambisonic decoder plug-in and registering it in Project Settings.
Read time 1 minuteLast updated 13 days ago
Develop a custom ambisonic audio decoder to decode the ambisonic audio format into a specific output format, such as stereo or surround sound.
Refer to Introduction to ambisonic audio decoders for information about decoders.
Steps to follow
Follow these steps to develop your own ambisonic audio decoder plug-in for Unity:
-
Create a custom audio plug-in using the Native audio plug-in SDK.
-
Set a flag in the description bit-field of the effect:definition.flags |= UnityAudioEffectDefinitionFlags_IsAmbisonicDecoder;
-
Optional: To make Unity pass the project's output channel count to the plug-in's process callback as the output channel count parameter, no matter the clip's channel count, also set theflag. Refer to Introduction to ambisonic audio decoders for details.
UnityAudioEffectDefinitionFlags_UseOutputChannelCount -
When you're done configuring your plug-in, compile your file. Make sure it compiles on your preferred platforms.
-
Optionally, convert your file to a .dll file.
-
Move your plug-in file into your Unity project’s Asset folder.
For more information on how to work with your ambisonic audio plug-in in Unity, refer to Ambisonic Audio.