Hello.
If I want to play a sound that is not in wav format what should I do ?
Thanks :)
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tanmay SarkarRank #1,407 · 1.2K reputationPosted Aug 5, 2010, 7:44 PM EDT
You can check it, in XP the path is "C:\WINDOWS\system32\winmm.dll"
Thank you!
Please mark that as a n answer If that help you.
Tanmay SarkarRank #1,407 · 1.2K reputationPosted Aug 5, 2010, 7:20 PM EDT
Thank you!
Please mark it as an answer if it help you!
Majid KamaliRank #6,453 · 266 reputationPosted Aug 5, 2010, 7:35 PM EDT
Thank you.
Sam HobbsRank #107 · 20.5K reputationPosted Aug 5, 2010, 8:09 PM EDT
Note that there are many ways to play sounds. You can use the old Windows API functions that play sounds using the computer speaker; the speaker is not a good speaker. Or you can use old Windows functions called Windows Multimedia, which is what Tanmay is suggesting. It is old but if it does what you need done then you can use it. Windows Multimedia existed in 16-bit Windows but it still works in 32-bit Windows and such.
When Microsoft created 32-bit Windows they purchased software that they renamed DirectX. Part of DirectX is DirectSound. They have minor problems with .Net but very minor. You can try using DirectSound (it might be called something else now) and if you do it can do many things.
There might be something new for .Net but if so then I don't know what it is.
If you can be more specific about what you want to play then hopefully someone can be more specific in thier answer.