Discussion:
Access per-application volume control?
(too old to reply)
Tony Mountifield
2009-12-26 09:13:21 UTC
Permalink
I have an ActiveX form control that was written for XP and needs to
play sounds to the user.

I have had some users compain that when running it under Vista or W7,
the sound is very soft compared with the rest of the system sounds.

Not having Vista or W7 myself, I have only recently discovered that
those OSes have per-application volume controls. I'm wondering whether
that is the explanation for the faint sounds. I had one of my Vista
users try opening the volume control but they were unable to find
an application slider that would help.

What would be ideal would be if I could control the relevant per-app
volume from the app itself. Can anyone point me at relevant code or
web resources with information on how to do this?

I did do a Google search, but most of the hits were to do with a
program to give the same per-app control under XP.

Thanks!
Tony
--
Tony Mountifield
Work: ***@softins.co.uk - http://www.softins.co.uk
Play: ***@mountifield.org - http://tony.mountifield.org
Jamie
2009-12-27 00:33:56 UTC
Permalink
Post by Tony Mountifield
I have an ActiveX form control that was written for XP and needs to
play sounds to the user.
I have had some users compain that when running it under Vista or W7,
the sound is very soft compared with the rest of the system sounds.
Not having Vista or W7 myself, I have only recently discovered that
those OSes have per-application volume controls. I'm wondering whether
that is the explanation for the faint sounds. I had one of my Vista
users try opening the volume control but they were unable to find
an application slider that would help.
What would be ideal would be if I could control the relevant per-app
volume from the app itself. Can anyone point me at relevant code or
web resources with information on how to do this?
I did do a Google search, but most of the hits were to do with a
program to give the same per-app control under XP.
Thanks!
Tony
The
AuxSetVolume, AuxGetNumDevs and AuxGetDevCaps may work for you..

Look those up..

If memory serves. The device number -1 or 0 indicates
the default device. But don't take my word on that, it's
been a while..

You should use the AuxGetDevCaps to make sure the device
you select supports volume control.
Tony Mountifield
2009-12-28 10:16:04 UTC
Permalink
Post by Jamie
Post by Tony Mountifield
[...]
What would be ideal would be if I could control the relevant per-app
volume from the app itself. Can anyone point me at relevant code or
web resources with information on how to do this?
I did do a Google search, but most of the hits were to do with a
program to give the same per-app control under XP.
The
AuxSetVolume, AuxGetNumDevs and AuxGetDevCaps may work for you..
Look those up..
If memory serves. The device number -1 or 0 indicates
the default device. But don't take my word on that, it's
been a while..
You should use the AuxGetDevCaps to make sure the device
you select supports volume control.
Thanks, I'll look them up.

Cheers
Tony
--
Tony Mountifield
Work: ***@softins.co.uk - http://www.softins.co.uk
Play: ***@mountifield.org - http://tony.mountifield.org
Loading...