• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing Windows control panel settings

 
Doug Fisher
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic