我在模拟器上面有声音的,但是真机上就没有
下面是初始化:
soundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 100);
soundPoolMap = new HashMap<Integer, Integer>();
soundPoolMap.put(1, soundPool.load(getContext(), R.raw.click, 1));然后在点击的时候
soundPool.play(soundPoolMap.get(1), 1, 1, 1, 0, 1f);怎么就没有声音呢
下面是初始化:
soundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 100);
soundPoolMap = new HashMap<Integer, Integer>();
soundPoolMap.put(1, soundPool.load(getContext(), R.raw.click, 1));然后在点击的时候
soundPool.play(soundPoolMap.get(1), 1, 1, 1, 0, 1f);怎么就没有声音呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货