Пример #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="effect"></param>
        /// <param name="voice"></param>
        internal SoundEffectInstance( AudioDevice device, SoundEffect effect, SourceVoice voice )
        {
            this.device = device;

            _effect = effect;
            _voice = voice;
        }
Пример #2
0
		/// <summary>
		/// 
		/// </summary>
		protected override void Initialize ()
		{
			base.Initialize();

			var cam	=	GetService<Camera>();
			cam.Config.FreeCamEnabled	=	true;
			
			soundEffect		=	Content.Load<SoundEffect>("rfly.wav");
			soundEffectBite	=	Content.Load<SoundEffect>("break_glass3.wav");

			InputDevice.KeyDown+=InputDevice_KeyDown;

			LoadConfiguration();
			Exiting += SoundDemo_Exiting;
		}