This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
So I've been reading through the Java Sound API, which isn't necessarily a walk in the park, trying to find out how to get control of my PC's main Speakers.
I'm currently writing a program that I want to be able to control my PC's main audio output through a JSlider. For example, if I was playing a song on iTunes
I would like to be able to adjust the volume from my GUI.
I've been using a test program with just one JSlider to try to get control of my speakers. Under the slider's ChangeListener method I have the following code:
Whenever I move the slider it prints out the error Exception message "Failed trying to find...". Why isn't it letting me obtain the volCtrl on my main output speakers?
How can I fix this code to get control of my SPEAKER?