I should have done everything I should do, but my test project does not make any sound with Acoustic Ray Tracing of Meta XR Audio SDK. What are the likely solutions? The project makes sounds normally when I disable Acoustic Ray Tracing.
My environment
- Windows 11
- Unity 2022.3.36f1
- Visual Studio 2022
- My Unity project is a simple non-XR 3D maze
What I did:
(1) Installed Meta XR Audio SDK Plugin for Unity tarball into my Unity project, following "Method 2: Download via the Meta Quest Developer Center" in [1].
(2) Set up my Unity project to enable Meta XR Audio SDK, following "Unity Project Setup" in [1]. The project settings is [2].
(3) The sounds are imported into Unity by forcing them to mono [3].
(4) Enable spatialization on my AudioSource components as per "Implementation" in [4]. The resulting setting is [5]. Attached the script MetaXRAudioSource.cs to the Audio Source’s GameObject. The optional MetaXRAudioSourceExperimentalFeatures.cs is not attached.
(5) Attached the sample SpatializerMixer, which is included in Meta XR Audio SDK, to the output of AudioSource components, following "Setup the Audio Mixer" in [6]. The resulting setting is [5].
(6) Added Acoustic Geometry as per [7]. Specifically, attached an MetaXRAcousticGeometry component to the parent GameObject that have various geometries like walls, floor, and ceiling as its children. "Include Child Meshes" is enabled. The resulting setting is [8].
Then baked the acoustic geometry. The baked data is generated in the file StreamingAssets/Acoustics/<scene name>/<parent GameObject name>.xrageo.
(7) Added a new GameObject and attached the MetaXRAcousticMap component to it, as per [9]. The resulting setting is [10].
Then baked the acoustic map. The Unity Editor's Inspector shows the acoustic map as READY. The baked data is generated in the file StreamingAssets/Acoustics/<scene name>.xramap.
(8) Played the scene in the Unity Editor, but I can hear no sound from spatialized audio. On the other hand, non-spatialized audio make sounds.
However, the Unity console shows that the acoustic geometry and map are loaded successfully as follows:
Found data in default location: StreamingAssets/Acoustics/Level 1.xramap