Sound

Published on: September 21, 2010
Categories: C# C++ und C
Tags: No Tags
Comments: No Comments

 
SOUND ABSPIELEN
using System.Media;
System.Media.SoundPlayer Sound = new System.Media.SoundPlayer();

Sound.SoundLocation = (@”C:\sound.wav”);

oder:

System.ComponentModel.ComponentResourceManager getsound = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
Sound.Stream = (getsound.GetStream(“SOUNDNAME”));
Sound.Load();
Sound.Play();

No Comments - Leave a comment

Leave a comment

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Welcome , today is Saturday, May 19, 2012