Solved

EASY: Play sound in C# Windows app.

Posted on 2003-11-15
2
401 Views
Last Modified: 2012-08-13
How can I play wav file or some other audio file from C# program?
0
Comment
Question by:glowas
2 Comments
 
LVL 10

Accepted Solution

by:
smegghead earned 250 total points
ID: 9756930
0
 
LVL 5

Expert Comment

by:Divinity
ID: 9763129
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.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now