美文网首页
AudioFlinger could not create t

AudioFlinger could not create t

作者: 忧郁的小码仔 | 来源:发表于2018-04-24 09:41 被阅读152次

使用SoundPool播放声音的时候,偶尔会出现AudioFlinger could not create track, status: -12的问题,再播放的时候就会出现失效的问题。这里是因为soundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 5); 第一个参数设置的太大的原因,如果同时播放的音效数量太大就会导致播放声音失败。

相关文章

网友评论

      本文标题:AudioFlinger could not create t

      本文链接:https://www.haomeiwen.com/subject/fxsdlftx.html