Пример #1
0
        /// <summary>
        /// Add a soundof type ICutlassSound
        /// </summary>
        /// <param name="newSound"></param>
        public static SoundId AddSound(ICutlassSound newSound)
        {
            SoundId soundId;

            lock (_SoundIdLock)
            {
                soundId = _NextSoundId++;
            }

            _Sounds.Add(soundId, newSound);

            if (_Initialized)
                newSound.LoadContent();

            return soundId;
        }
Пример #2
0
        /// <summary>
        /// Add a soundof type ICutlassSound
        /// </summary>
        /// <param name="newSound"></param>
        public static SoundId AddSound(ICutlassSound newSound)
        {
            SoundId soundId;

            lock (_SoundIdLock)
            {
                soundId = _NextSoundId++;
            }

            _Sounds.Add(soundId, newSound);

            if (_Initialized)
            {
                newSound.LoadContent();
            }

            return(soundId);
        }