Soundpool plays only first 5 secs of file. Why?

前端 未结 5 1602
独厮守ぢ
独厮守ぢ 2020-12-05 14:04

I use Soundpool in my app, so far it works good, but I do have a wav file which is 10 secs. Unfortunately, soundpool plays only the first 5 secs. How to make soundpool to pl

5条回答
  •  粉色の甜心
    2020-12-05 14:57

    So I think you reached the 1M limit in SoundPool.

    SoundPool is hard code the buffer size as 1M, for all loaded file, store in pcm format.

    So it do not care of ogg or wav.

提交回复
热议问题