[ACCEPTED]-How can I play a sound in WinForms?-audio
Accepted answer
For playing sound simply, with no interaction 1 you can use System.Media.SoundPlayer:
System.Media.SoundPlayer player = new System.Media.SoundPlayer();
player.SoundLocation = "soundFile.wav";
player.Play();
NAudio is a great library to reproduce sound, you 1 can find it here: http://naudio.codeplex.com/
And the tutorial is here: http://opensebj.blogspot.com/2009/02/introduction-to-using-naudio.html
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.