Reputation: 33
I write the code below but I cannot change the volume of the sound. I changed "a.Volume = 5;" but this did not affect anything. How can I change the volume of the audio. Thanks
var a = new System.Windows.Media.MediaPlayer();
a.Open(new System.Uri(@"\a.wav”))
a.Volume = 5;
a.Play();
Upvotes: 2
Views: 5820