i developed my game with sounds
i tested my game on many devices
n70 n71 n95 and many other
sounds work fine
but when i tested the game on n93i
no sounds no exceptions
here is the code that runs sounds
private Player pMenu;
if(pMenu==null)
try {
in = getClass().getResourceAsStream("/audio/menu.mid");
pMenu = Manager.createPlayer(in, "audio/midi");
pMenu.prefetch();
VolumeControl vc = (VolumeControl)pMenu.getControl("VolumeControl");
vc.setLevel(vc.getLevel()/2);
} catch (Exception ex) {
ex.printStackTrace();
}
if(pMenu!=null&&pMenu.getState()!=Player.STARTED)
{
pMenu.start();
menu=true;
}
thnks for reading

Reply With Quote

