0

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

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by gulbano
1

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();

Edited by abelLazm: n/a

0

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

Edited by gulbano: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.