tags:

views:

23

answers:

1

Appears that java's sound API's work well for single streams, and even for setting the input from the microphone, but not for setting the master volume level in Vista/Windows 7.

refs:

http://stackoverflow.com/questions/1727511/java-sound-api-to-access-the-system-master-volume-control-in-vista-and-win-7

http://stackoverflow.com/questions/1734808/how-to-adjust-speaker-volume-from-java-program

http://stackoverflow.com/questions/294292/changing-master-volume-level/294525#294525 only works on XP for the master volume

Anybody have something that'll work for all of them (without compatibility mode or controlling the mouse to increase volume level [robot-like]).

A: 

seeing as there's no other answers, my current one is to use jna to send the keyboard strokes for volume up and down: http://superuser.com/questions/82229/how-to-control-master-volume-in-windows-7/86227#86227

Ideally, however, you'd hook into a dll that was "vista aware" and could actually control it right. And somehow do it the "right" way for XP, as well, using the legacy way.

rogerdpack