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
newbiewebSr. Software EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.