1. Unsilencing Mute?
- Posted by "C. K. Lester" <cklester at yahoo.com> Jan 07, 2002
- 398 views
Some of my Windows users keep their PCs muted, but I need them to hear audio signals. Can I programmatically turn off "Mute," as well as adjust volume? I know it can be done, but how? Thanks, ck
2. Re: Unsilencing Mute?
- Posted by Euman <euman at bellsouth.net> Jan 08, 2002
- 392 views
Maybe you could translate this to suit your needs.. UINT MaxDevs = waveOutGetNumDevs(); WAVEOUTCAPS woc; for (UINT DID = 0; DID < MaxDevs - 1; DID++) { MMRESULT res = waveOutGetDevCaps(DID, &woc, sizeof(AUXCAPS)); if ((res == MMSYSERR_NOERROR) && (woc.dwSupport & WAVECAPS_LRVOLUME)) break; } if (DID == MaxDevs - 1) DID = AUX_MAPPER; // MASTER VOLUME #define MLEFTVOL 0x1000 #define MRIGHTVOL 0x1000 auxSetVolume(DID, MAKELONG(MLEFTVOL, MRIGHTVOL)); // WAVE VOLUME #define WLEFTVOL 0x8000 #define WRIGHTVOL 0x8000 waveOutSetVolume((HWAVEOUT)DID, MAKELONG(WLEFTVOL, WRIGHTVOL)); Euman ----- Original Message ----- From: "C. K. Lester" <cklester at yahoo.com> > > > But this is why i pulled the sound card and disconnected the internal > > speaker,, and cut the traces to the modem beeper. > > Kat, you are such an extremist!