aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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: 19784

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
I agree. Here's the link:
subject: Changing Windows control panel settings