473,396 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Vista Master Volume Control

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
Nov 20 '06 #1
3 6948
"Mike Carlisle" <Mi**********@discussions.microsoft.comwrote in message
news:AC**********************************@microsof t.com...
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
Nov 20 '06 #2
U need to use P/Invoke to call COM methods. The sample is there
http://samples.gotdotnet.com/quickst...s_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/tik...?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


"Mike Carlisle" wrote:
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
Nov 20 '06 #3
Thanks, I know I need to PInvoke, I just don't know how to it with these
objects and methods.

http://msdn2.microsoft.com/en-us/library/ms678758.aspx

I wrote my own class to change volume the old way, and it only changes the
application volume (new to vista).

I'll try the other forum you suggested.

"William DePalo [MVP VC++]" wrote:
"Mike Carlisle" <Mi**********@discussions.microsoft.comwrote in message
news:AC**********************************@microsof t.com...
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
Nov 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve | last post by:
If I mute the master volume control, is there anyway my AP can detect dynamically?
0
by: Stefan Basler | last post by:
Hi there, I'm currently working on a VB .NET project in which I need to control the master and / or the line in of the installed sound card. I managed to control the wave volume by using...
2
by: Bob Day | last post by:
Using VS 2003, VB. Net, MSDE... Usining task sheduler, I wish to mute the volume in the .bat file that task scheduler runs (windows XP Pro). I don't see anyway to do this via a .bat line...
16
by: Basil Fawlty | last post by:
Hi everyone, I have an assignment, to create a simple VB program that computes the volume of a cylinder. The Form is pretty simple, it has a label and text box for base radius, another for height...
1
by: Christopher A. Kelly | last post by:
I need to figure out how to control any 3rd party application by simulating mouse click and key presses. I need to take a partial window title and get the handle then be able to send the necessary...
7
by: Rich Milburn [MVP] | last post by:
Ok I am not a programmer, I copied some code and very painfully got it working in VB6. I can adjust the volume with waveOutSetVolume on winmm.dll. But I could not seem to be able to figure out how...
8
by: =?Utf-8?B?UGV0ZXJX?= | last post by:
I install Visual Studio 2005 Pro on Vista. I open and migrate a 2003 web project to 2005. I attempt to browse an aspx file from the Solution Exploer. It displays a blank html page. I create a...
5
by: | last post by:
Hello, I am wrtting a program that does some sound effects... the files are stored in a subfolder in the application folder... and I check the existence of the files before calling the method to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.