I\'m trying to make an mp3 player in java and I can`t figure out how to control the volume in it.
I\'ve tried something like this:
// Adjust
float vol=50; final FloatControl volumeControl = (FloatControl) auline.getControl( FloatControl.Type.MASTER_GAIN ); volumeControl.setValue( 20.0f * (float) Math.log10( vol / 100.0 ) );
vol=0 means mute.