Ejemplo n.º 1
0
        public static SoundPlayer ToSoundPlayer(this WaveExampleType type, int frequency, double volume)
        {
            WaveGenerator wave = new WaveGenerator(
                type,
                frequency,
                volume
                );

            var p = new SoundPlayer(wave);

            return(p);
        }
		public static SoundPlayer ToSoundPlayer(this WaveExampleType type, int frequency, double volume)
		{
			WaveGenerator wave = new WaveGenerator(
				type,
				frequency,
				volume
			);
			
			var p = new SoundPlayer(wave);

			return p;
		}