![]() |
C# - Play WAV Audio - Printable Version +- (wL) Forums (https://war-lords.net/forum) +-- Forum: Resources (https://war-lords.net/forum/forum-31.html) +--- Forum: Programming (https://war-lords.net/forum/forum-33.html) +--- Thread: C# - Play WAV Audio (/thread-7717.html) |
C# - Play WAV Audio - MindHACKer - Jun 23 2012 If you want to simply play a WAV audio file, or play WAV audio files in certain patterns, you can easily use the "MEDIA" library supplied by microsoft without any need to reference 3rd Party DLLs, the code is very easy. The following code demonstrates how to play a WAV file embed in the app assembly ("Resources"), with "try catch" to handle errors dynamically. Code: [U]using System.Media;[/U] That's it. |