I start Win Vista, in the lower right part of the window there is a speaker icon next to the clock, I can click on it and adjust the volume, I wonder if there is a way in my Java program to do this automatically. For example, when my Java program starts, it turns the volume into 80, and when the program exits, it changes the volume back to its original level, I am not against using Runtime.getRuntime (). Exec () if there is a way to achieve this effect.
Frank source
share