Search code examples
javaaudiomp3volume

Use a jSlider to change the volume of audio output in Java


I already have a class that controls the MP3(play/pause/stop ...etc)

Is it possible to control the volume with javax.sound.*? Or would I have to put in a volume control method in the class that controls MP3?


Solution

  • See this Link:http://www.javadocexamples.com/java_source/javazoom/jlGui/BasicPlayer.java.html