Example #1
0
        // Default props constructor
        internal SoundInfo()
        {
            this.name = "#GLOBAL_PROPERTIES#";
            children  = new List <SoundInfo>();
            type      = SoundInfoType.SOUND;

            // Set non-existent settings
            Volume          = 1.0f;
            Attenuation     = 1.0f;
            MinimumDistance = 200;
            MaximumDistance = 1200;
            Rolloff         = RolloffType.NONE;
            RolloffFactor   = 1.0f;           // Is this the default value?
        }
Example #2
0
        public SoundInfo(string name)
        {
            this.name = name;
            children  = new List <SoundInfo>();
            type      = SoundInfoType.SOUND;

            // Set non-existent settings
            Volume          = float.MinValue;
            Attenuation     = float.MinValue;
            MinimumDistance = int.MinValue;
            MaximumDistance = int.MinValue;
            Rolloff         = RolloffType.INVALID;
            RolloffFactor   = float.MinValue;
        }