Answers for "c# playing sounds"

C#
2

c# play sound

System.Media.SoundPlayer player = new System.Media.SoundPlayer(@"c:\mywavfile.wav");
player.Play();
Posted by: Guest on September-23-2020
0

play sound c#

//Library for using the Play() and Stop() method 
using System.Media

SoundPlayer player = new System.Media.SoundPlayer(@"c:\mywavfile.wav");
//Play the selected sound from the path
player.Play();
Posted by: Guest on March-14-2022

C# Answers by Framework

Browse Popular Code Answers by Language