Java Sound offers FloatControl instances for various sound line functionality, and both a MASTER_GAIN & VOLUME control type.
Can these controls be used to change the system volume?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, it cannot. Here is source adapted from an answer to Adjusting master volume on coderanch. The source iterates the available lines, checks if they have a control of the right type, and if so, puts them in a GUI attached to a
JSliderOn this Windows 7 machine I get two controls, both from the “Java Sound Audio Engine”. Neither has any effect on the current system volume.
Swap
FloatControl.Type.MASTER_GAINforFloatControl.Type.VOLUMEto see.. no controls.