Ambisonic audio at runtime

Hello there,

I’m currently working on a solution that gets audios from a server to Unity. Some of those audios are ambisonic and so I would like to know if there were any way to set the ambisonic parameter of a newly created audioclip (created with AudioClip.Create()) to true by script at runtime ?
I have not found a solution nor a thread with a clear answer yet…

Thank you for your time,

Cheers!

Sorry for the double post but it has been a while and still no answers and I would love to know if there is a way to do this.
Thank you again,

Cheers!

if by '… parameter of a newly created audioclip (created with AudioClip.Create()) to true ’ you mean the _3D parameter in Create method then no - that’s for builtin (horizontal) spatialization only
I haven’t tested this whole substack properly fro some time, but you need ambisonic decoder to be imported in the project [and set it in audio settings] as minimum to be able to import amb clips; -
IIRC there is/was literally nothing for runtime though, unfortunately – don’t know how current UnityWebRequest and its Multimediahandler well… handles things, but chances are it doesn’t support amb files at all

1 Like

Hello @r618 ,
I did not mean _3D parameter as I can already set that up correctly and have the “horizontal” spatialization. What I meant was the “ambisonic” flag (which you can see in the file)

7703665--965032--Screen.JPG

yea i know, but those are just import settings, i.e. not runtime
as per my previous post i think (sure about 98%) there’s no runtime clip created ambisonic support

2 Likes

Feel free to vote for more love to Spatial audio workflow (in particular loading ambisonics files using their AudioClip loader: https://portal.productboard.com/zoyxyyqjirdumawnfz7sjsjg/tabs/109-authoring-workflows (it’s currently only under consideration).

is there any way to check the ambisonic check box runtime from script?