SoundPool封装类

plawuyue 72 0 RAR 2019-02-15 20:02:57

资源为一个专门处理短音效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_

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2019-02-15 20:02:57

还不错,可以用

Generic placeholder image 卡了网匿名网友 2019-02-15 20:02:57

还不错,可以用

Generic placeholder image 卡了网匿名网友 2019-02-15 20:02:57

还不错,可以用

Generic placeholder image 卡了网匿名网友 2019-02-15 20:02:57

虽然看不到实现细节,不过还是谢谢楼主

Generic placeholder image 卡了网匿名网友 2019-02-15 20:02:57

封装了就是用的方便