Vista Master Volume Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Can someone give me some help on setting the master volume control in Vista.
I've looked everywhere and there seems to be very little help on this. The
only information I can find is that I should be using
IAudioEndpointVolume::SetMasterVolumeLevelScalar , but no ideal how to go
about this in managed code.

Anyone know how to do this?

Thanks,

Mike
 
Mike Carlisle said:
Can someone give me some help on setting the master volume control in
Vista.
I've looked everywhere and there seems to be very little help on this.

IME, the best place to get help on a multimedia issue is in

microsoft.public.win32.programmer.mmedia

but whether or not you'll find someone who is Vista ready there, I can't
say.

Regards,
Will
 
U need to use P/Invoke to call COM methods. The sample is there
http://samples.gotdotnet.com/quickstart/howto/doc/Interop/Building_Samples_NET2COM.aspx

The problem is that MS not documented
IAudioEndpointVolume::SetMasterVolumeLevelScalar yet. So you need to find the
dll where is realized by yourself, that is not so simple. You need to use
unmanaged code to call test app, to query this interface and see VS output
window to get the dll it loads.

I'd recommed to ask MS guys about lib or ask there
http://www.wdmaudiodev.com/ because they work with it closely (seen several
post about MMDevice API there

BTW, try to chage volume this way
http://www.csharp-home.com/index/tiki-read_article.php?articleId=134

--
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Back
Top