The following code is working on the emulator:
VolumeControl vc;
Player p=null;
try {
if(p==null){
InputStream is = getClass().getResourceAsStream("/test.mid");
p = Manager.createPlayer(is,"audio/midi");
}
p.realize();
vc = (VolumeControl) p.getControl("VolumeControl");
if(vc != null) { vc.setLevel(100);}
p.prefetch();
p.start(); }
catch(IOException ioe) {aTextField.setString(ioe.getMessage());}
catch(MediaException e) {aTextField.setString(e.getMessage());}
When I deploy it to the E71 it doesn't work and I get no error messages.
What am I doing wrong?

Reply With Quote

