Version: Unity 6.7 Alpha (6000.7)
Language : English
Introduction to ambisonic audio decoders
Audio Reference

Develop an ambisonic audio decoder

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:

  1. Create a custom audio plug-in using the Native audio plug-in SDK.

  2. Set a flag in the description bit-field of the effect:

    definition.flags |= UnityAudioEffectDefinitionFlags_IsAmbisonicDecoder;
    
  3. 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 the UnityAudioEffectDefinitionFlags_UseOutputChannelCount flag. Refer to Introduction to ambisonic audio decoders for details.

  4. When you’re done configuring your plug-in, compile your file. Make sure it compiles on your preferred platforms.

  5. Optionally, convert your file to a .dll file.

  6. 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.

Additional resources

Introduction to ambisonic audio decoders
Audio Reference