protected override AudioSource InternalSpatialize(AudioSource audioSource, AudioMixerGroup group)
 {
     audioSource = base.InternalSpatialize(audioSource, group);
     audioSource.Ensure <MSA.MSASource>(null, (msa) =>
                                        msa.Override3DProperties = true);
     return(audioSource);
 }
        protected override AudioSource InternalSpatialize(AudioSource audioSource, AudioMixerGroup group)
        {
            audioSource = base.InternalSpatialize(audioSource, group);

            var resSource = audioSource.Ensure <ResonanceAudioSource>().Value;

            resSource.quality = ResonanceAudioSource.Quality.High;

            return(audioSource);
        }
        protected override AudioSource InternalSpatialize(AudioSource audioSource, AudioMixerGroup group)
        {
            audioSource = base.InternalSpatialize(audioSource, group);

            var ms = audioSource.Ensure <AudioSpatializerMicrosoft>();

            ms.Value.roomSize = AudioSpatializerMicrosoft.RoomSize.Medium;

            return(audioSource);
        }
        protected override AudioSource InternalSpatialize(AudioSource audioSource, AudioMixerGroup group)
        {
            audioSource = base.InternalSpatialize(audioSource, group);
            var oculus = audioSource.Ensure <ONSPAudioSource>().Value;

            oculus.EnableSpatialization = true;
            oculus.UseInvSqr            = true;
            oculus.Near             = audioSource.minDistance;
            oculus.Far              = audioSource.maxDistance;
            oculus.VolumetricRadius = 0;

#if UNITY_ANDROID && !UNITY_EDITOR
            oculus.EnableRfl = false;
#endif

            return(audioSource);
        }