Esempio n. 1
0
		/// <summary>
		/// Creates a new instance of this class.
		/// </summary>
		/// <param name="soundsystem">The SoundSystem that created this SoundManager.</param>
		/// <param name="filepath">The relative filepath to the managed SND file.</param>
		/// <param name="sounds">The sounds contained in the SND file.</param>
		public SoundManager(SoundSystem soundsystem, String filepath, ReadOnlyDictionary<SoundId, SecondaryBuffer> sounds)
		{
			if (soundsystem == null) throw new ArgumentNullException("soundsystem");
			if (filepath == null) throw new ArgumentNullException("filepath");
			if (sounds == null) throw new ArgumentNullException("sounds");

			m_soundsystem = soundsystem;
			m_filepath = filepath;
			m_sounds = sounds;
		}
Esempio n. 2
0
        /// <summary>
        /// Creates a new instance of this class.
        /// </summary>
        /// <param name="soundsystem">The SoundSystem that created this SoundManager.</param>
        /// <param name="filepath">The relative filepath to the managed SND file.</param>
        /// <param name="sounds">The sounds contained in the SND file.</param>
        public SoundManager(SoundSystem soundsystem, string filepath, ReadOnlyDictionary <SoundId, byte[]> sounds)
        {
            if (soundsystem == null)
            {
                throw new ArgumentNullException("soundsystem");
            }
            if (filepath == null)
            {
                throw new ArgumentNullException("filepath");
            }
            if (sounds == null)
            {
                throw new ArgumentNullException("sounds");
            }

            m_soundsystem = soundsystem;
            m_filepath    = filepath;
            m_sounds      = sounds;
        }