Hey all

I have to make a audio player in C# can any one tell me how to play an audio in c# form application ?


Thanks in advance

The namespace used to play audio file in c# is using System.Media; the class is SoundPlayer obj=new SoundPlayer(); and the code to play the file is

obj.SoundLocation = "Location of file"; 
obj.Play();

Thanks abellazm can you please refer me some tutorials about this problem?

Thanks for such valuable links

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.