1. Unsilencing Mute?

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

new topic     » topic index » view message » categorize

2. Re: Unsilencing Mute?

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!

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu