Link to home
Start Free TrialLog in
Avatar of glowas
glowas

asked on

EASY: Play sound in C# Windows app.

How can I play wav file or some other audio file from C# program?
ASKER CERTIFIED SOLUTION
Avatar of smegghead
smegghead
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Divinity
Divinity

You could download the DirectX SDK and simply use DirectSound. With DirectSound you can play sound in just 1 or 2 lines of code. And SDK includes a couple of examples that show you exactly how to use DirectSound.