【发布时间】:2020-09-23 17:41:31
【问题描述】:
soundPool Api 似乎在 android 11 上无法正常工作。我听到的声音像是慢动作。有没有任何相关的问题?
我的代码
private SoundPool soundPool;
private int wonSound;
...
soundPool = new SoundPool.Builder().setMaxStreams(1).build();
wonSound = soundPool.load(this, R.raw.slot_win_1, 1);
...
soundPool.play(wonSound, 1, 1, 0, 0, 0);
【问题讨论】: