• 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.

Thanks,
newbieweb
0
newbieweb
Asked:
newbieweb
2 Solutions
 
snagsy1980Commented:
0
 
raja_mduCommented:
Download the WaveLibMixer.dll file / WaveLibMixer froject from following and add it as a reference
and implement following code.
http://www.codeproject.com/KB/graphics/AudioLib.aspx?df=100&forumid=217323&exp=


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

Open in new window

0

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