Пример #1
0
        public void DestroyAudioBus(string name)
        {
            AudioBus audioBus = FindAudioBusByName(name);

            if (audioBus != null)
            {
                _audioBuses.Remove(audioBus);
            }
        }
Пример #2
0
        public bool CreateAudioBus(string name)
        {
            if (FindAudioBusByName(name) != null)
            {
                return(false);
            }
            AudioBus audioBus = new AudioBus();

            audioBus._name = name;
            _audioBuses.Add(audioBus);
            return(true);
        }
Пример #3
0
 public void Reset()
 {
     _volume                = 1f;
     _pitch                 = 1f;
     _priority              = 128;
     _panLevel              = 1f;
     _spreadLevel           = 0f;
     _dopplerLevel          = 1f;
     _minDistance           = 1f;
     _reverbZoneMix         = 1f;
     _rolloffMode           = AudioRolloffMode.Linear;
     _bypassEffects         = false;
     _bypassListenerEffects = false;
     _bypassReverbZones     = false;
     _fadeParameter         = 1f;
     _isDirty               = false;
     _depth                 = 0;
     _audioMixerGroup       = null;
     _audioBus              = null;
     _spatialize            = false;
     _customCurves          = null;
 }