• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2975
  • Last Modified:

Mute for Windows sound goes on automatically

I have written a program where autible alerts are curtical to the functioning of the program, but find the sound shuts off by itself.  I use a Turtle USB sound card and a pair of $50 speakers which make the sound quality really good.  But after a few minutes the sound goes off and when I check the Windows volume control I see the mute is on.

Does anyone know how the mute can go on by itself?  If so, please tell me.  If I can not keep sound working, my program loses 95% of its value.

Also, can anyone tell me how to programatically (C#.NET) turn the mute off?  If I can not find the answer to stop it from being turned on, I would like to turn mute off before I try and play a sound.

2 Solutions
Download the WaveLibMixer.dll file / WaveLibMixer froject from following and add it as a reference
and implement following code.

            Mixers mMixers = new Mixers();
            MixerLines lines;
            mMixers.Playback.DeviceId = 0;
            lines = mMixers.Playback.UserLines;
            MixerLine line = lines[0];
                line.Mute = false;

Open in new window


Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now