SoundPool封装类
资源为一个专门处理短音效soundPool的工具类,使用起来很方便,封装的很好!使用方法: 1、你只需要在需要的地方调用这个方法进行类初始化 private void initSound() { soundPlay = new SoundPlay(); soundPlay.initSounds(this); soundPlay.loadSfx(this, R.raw.win, ID_SOUND_WIN); soundPlay.loadSfx(this, R.raw.lose, ID_SOUND_LOSE); } 2、在开始播放音效的时候调用soundPlay.play(ID_