Home All Groups Group Topic Archive Search About

Control Mute or Audio Volume

Author
24 Sep 2005 4:37 AM
Doug Sanders
I'm creating a presentation program to be distributed on CD.  Works well,
but now client wants option to allow viewer to mute the audio on their
system if desired.

I'd like to get the current volume level, save it, set the level to zero,
and then back to original level when program ends.

or

Get the audio mute status, mute the system, restore the original mute status
when the program ends.


I've seen some huge code samples developing whole mixers, etc.,  there must
be an easier way like
GetVolumeLevel, SetVolumeLevel.


Thanks,
Doug

Author
24 Sep 2005 6:34 AM
Juergen Thuemmler
> I'd like to get the current volume level, save it, set the level to zero,
> and then back to original level when program ends.or Get the audio
> mute status, mute the system, restore the original mute status
> when the program ends.

www.mentalis.org/vbexamples/vbexample.php?vbexample=VOLUME&category=SOURCE
Use the class module only.

Juergen.
Author
25 Sep 2005 2:57 AM
Doug Sanders
Excellent response.

Got it working in about 45 minutes while watching hurricane newss.

Thanks,

Doug


Show quoteHide quote
"Juergen Thuemmler" <t***@removethisgmx.de> wrote in message
news:u9vOMJNwFHA.2864@TK2MSFTNGP10.phx.gbl...
> > I'd like to get the current volume level, save it, set the level to
zero,
> > and then back to original level when program ends.or Get the audio
> > mute status, mute the system, restore the original mute status
> > when the program ends.
>
> www.mentalis.org/vbexamples/vbexample.php?vbexample=VOLUME&category=SOURCE
> Use the class module only.
>
> Juergen.
>
>