I'm trying to get access to master volume in windows 7 from java but what i got so far is control over the application volume how can i get control over the master volume?
Here is my code so far:
try {
Mixer.Info[] infos = AudioSystem.getMixerInfo();  
for (Mixer.Info info: infos)  
{  
   Mixer mixer = AudioSystem.getMixer(info);
   if (mixer.isLineSupported(Port.Info.SPEAKER))  
   {  
      Port port = (Port)mixer.getLine(Port.Info.SPEAKER);  
      port.open();  
      if (port.isControlSupported(FloatControl.Type.VOLUME))  
      {  
         FloatControl volume = FloatControl)port.getControl(FloatControl.Type.VOLUME);  
         volume.setValue(volume.getValue() + (float)0.1);
      }  
      port.close();  
   }  
 }  
} catch (Exception e) {
      System.out.println(e);
}