Playing sounds in Visual C#
c#, visual-studio
Solution
System.Media.SoundPlayer sound = new System.Media.SoundPlayer(@"ringout.wav");
sound.PlaySync();
Problem
I want to add sound effects to my Visual C# program. What's the simplest way to do this?
c#, visual-studio
System.Media.SoundPlayer sound = new System.Media.SoundPlayer(@"ringout.wav");
sound.PlaySync();
I want to add sound effects to my Visual C# program. What's the simplest way to do this?