hello guys i just have a wiered problem, i need to pause an audio aplication, after the pause, the audio has to play from the last point paused, but the thing is i can do it if the file is a midi file but when i change it to ARM or MP3 the pause never works, it always plays from the begining of the file . I have the voice recorded in a ARM file, i guess if it works for midi the algorithm must be good,any help please.

i am using NetBeans
my code is :

package hello;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.*;


public class TestMIDlet extends MIDlet implements CommandListener{

Form testForm = null;
Command playCmd = null;
Command pauseCmd = null;
Command exitCmd = null;
Display display = null;
Player player = null;
long time = 0L;
boolean isFirstTime = true;

public TestMIDlet() {
loadSound();
testForm = new Form("Test");
playCmd = new Command("Play",Command.OK,1);
pauseCmd = new Command("Pause",Command.OK,2);
exitCmd = new Command("Exit",Command.EXIT,2);
testForm.addCommand(playCmd);
testForm.addCommand(pauseCmd);
testForm.addCommand(exitCmd);
}

protected void destroyApp(boolean arg0){
notifyDestroyed();
}

protected void pauseApp() {


}

protected void startApp(){
if(display == null){
display = Display.getDisplay(this);
}
display.setCurrent(testForm);
testForm.setCommandListener(this);
}

public void loadSound(){
try{
player = Manager.createPlayer(getClass().getResourceAsStream("/Nuevo2.mp3"),"audio/mpeg");
player.realize();
player.prefetch();
player.setLoopCount(-1);
}catch(Exception e){

}
}

private void playMusic(){
try{
if(isFirstTime){
player.start();
isFirstTime = false;
}else{
System.out.println("Time:"+time);
player.setMediaTime(time);
player.start();
}
}catch(Exception e){
System.out.println("in play:"+e);
}
}

private void pauseMusic(){
try{
time = player.getMediaTime();
player.stop();
}catch(Exception e){
System.out.println("in pause:"+e);
}
}

public void commandAction(Command c,Displayable d){
if(c == playCmd){
playMusic();
}else if(c == pauseCmd){
pauseMusic();
}else if(c == exitCmd){
destroyApp(false);
}
}

}