I am creating a Game using J2ME.In that , in setting screen user can increse or decrese the sound volume using left-right key navigation. Actually i have done this using the below code:
vc = (javax.microedition.media.control.VolumeControl) p.getControl("VolumeControl");
if (vc != null)
volCnt is a integer value.I have increased/decresed this value using left/right key. But after alter this value i need to stop the sound and again need to start. Actually i want to increase/decrese the sound volume with out stopping the sound which is playing currently on the application(Only the sound volume value has to change).
Please help me to find a solution as soon as possible.