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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Changing Windows control panel settings" Watch "Changing Windows control panel settings" New topic
Author

Changing Windows control panel settings

Doug Fisher
Greenhorn

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
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing Windows control panel settings