J2ME音频播放

来源:互联网 发布:windows10必装软件 编辑:程序博客网 时间:2024/05/10 15:25

 Player player = Manager.createPlayer("aa.mid","audio/midi");

player.realize();

VolumeControl vc = (VolumeControl)player.getControl("VolumeControl");

if(vc!=null)
{

   vc.setLevel(100);//set volume
}

player.start();