Ejemplo n.º 1
0
		private static void Start(XnaMedia.Song song) {
            if (song == null)
                return;
				
			XnaMedia.MediaPlayer.IsRepeating = false;
			XnaMedia.MediaPlayer.Volume = MaxSoundVolume;
			XnaMedia.MediaPlayer.Play(song);
		}
Ejemplo n.º 2
0
		public XnaVideo(string filename, XnaMedia.VideoPlayer player, XnaDevice graphicsDevice,
			SoundDevice soundDevice)
			: base(filename, soundDevice)
		{
			this.player = player;
			this.graphicsDevice = graphicsDevice;
			image = new VideoImage(graphicsDevice);
		}