Play the sound associated with the Asterisk event : SoundPlayer « Development « C# / CSharp Tutorial






using System;
using System.Windows.Forms;
using System.Media;

public class MainClass {
   public static void Main() {
      // Play the sound associated with the Asterisk event
      SystemSounds.Asterisk.Play();
   }
}








14.34.SoundPlayer
14.34.1.Play a wav file by using SoundPlayer
14.34.2.Play the sound associated with the Asterisk event