File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Changing Windows control panel settings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Changing Windows control panel settings" Watch "Changing Windows control panel settings" New topic

Changing Windows control panel settings

Doug Fisher

Joined: Nov 02, 2012
Posts: 6
What I want to be able to do from within Java code is to make changes to the settings in the Sound control panel in windows. Specifically, from the Playback tab when you click on Speakers in the list and then the Properties button, then the Custom tab, I want to be able to toggle the checkbox for Limited Output. Is this possible to do in Java code?
Rob Spoor

Joined: Oct 27, 2005
Posts: 19845

You might be able to change some settings using the javax.sound.sampled package. If I recall correctly, the hierarchy is Mixer -> Port (Line) -> Control. Use AudioSystem.getMixerInfo() and AudioSystem.getMixer(Mixer.Info) as the entry points. You'll probably have to open the ports, unless a) they are already open (use isOpen()), or b) they are Clips.

How To Ask Questions How To Answer Questions
Consider Paul's rocket mass heater.
subject: Changing Windows control panel settings