Exemple #1
0
        public static void PlayFromFile(string filePath)
        {
            SoundPlayer1 sound = new SoundPlayer1(filePath);

            sound.Play();
        }
 public static void PlayFromFile(string filePath)
 {
     SoundPlayer1 sound = new SoundPlayer1(filePath);
     sound.Play();
 }
Exemple #3
0
        public static void PlayEmbeddedSound(Assembly assembly, string resourceName)
        {
            SoundPlayer1 sound = new SoundPlayer1(assembly.GetManifestResourceStream(resourceName));

            sound.Play();
        }
 public static void PlayEmbeddedSound(Assembly assembly, string resourceName)
 {
     SoundPlayer1 sound = new SoundPlayer1(assembly.GetManifestResourceStream(resourceName));
     sound.Play();
 }