This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing Windows control panel settings  RSS feed

 
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
Posts: 21092
85
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
Boost this thread!