Audio locked on App start. No head tracked audio. Often starts hard panned to left or right

Alternatively, you don’t need to touch Classes/UnityAppController.mm.

You can also modify UnityMain.swift (com.unity.xr.visionos/Runtime/Plugins/visionos/UnityLibrary.swift)
We want to show a swift window at first and want it to have VisionOS spatial audio.
So when we go into full VR we then call a function to initiate the bypass to Unity/fmods spatialization.

For example:

    func setupSpatialAudioSessionBypass() {
        do {
            let session = AVAudioSession.sharedInstance()
            try session.setIntendedSpatialExperience(.bypassed)
        } catch {
            fatalError("Failed to reconfigure active shared session.")
        }
    }

This function can be called after

UnityVisionOS_SetLayerRenderer(layerRenderer)

and before

layerRenderer.onSpatialEvent = { eventCollection in