play sound csharp

Code Example - play sound csharp

                
                        //Library for using the Play() and Stop() method 
using System.Media

SoundPlayer player = new System.Media.SoundPlayer(@"c:\mywavfile.wav");
//Play the selected sound from the path
player.Play();