//**************************************Player的销毁
if(playerSound != null){
playerSound.deallocate();
playerSound.close();
playerSound = null;
}
一定要加deallocate();,否则就算 =null 内存也没减少
//*******************************************************************
player = Manager.createPlayer(getClass().getResourceAsStream("/sound/" + path + ".mid"), audio/midi");//
player.setLoopCount(type); //播放次数,-1为循环
player.realize();
player.prefetch();
player.setMediaTime(0);//从时间为0开始拨,
手机有些方法不一定支持,要试试看