I am using JMF for playing mp3 Audio file.It is playing but I have no idea how to control its volume? I am using
Player audioPlayer = Manager.createRealizedPlayer(url);
audioPlayer.start();
On
See Player.getGainControl() which:
Gets the object for controlling this
Player's audio gain. If this player does not have aGainControl,getGainControlreturnsnull. For example,getGainControlmight returnnullif thePlayerdoes not play audio data.
On GainControl:
GainControlis an interface for manipulating audio signal gain.Gain and Gain Measures
Gain is a multiplicative value applied to an audio signal that modifies the amplitude of the signal. This interface allows the gain to be specified in either decibels or using a floating point value that varies between 0.0 and 1.0.
I did it on Android in this fashion.