本文出自 “YYBear笔记” 博客,请务必保留此出处http://www.jb51.cc/article/p-ajkmvksx-hw.html
private static final int MAX_SIMULTANEOUS_STREAMS_DEFAULT = 5;
本人讲此值修改为:20
Added in API level 1
This constructor was deprecated in API level 21.
use@H_404_27@SoundPool.Builderinstead to create and configure a SoundPool instance
Constructor. Constructs a SoundPool object with the following characteristics:
Parameters
maxStreams | the maximum number of simultaneous streams for this SoundPool object |
---|---|
streamType | the audio stream type as described in AudioManager For example,game applications will normally useSTREAM_MUSIC . |
srcQuality | the sample-rate converter quality. Currently has no effect. Use 0 for the default. |
Returns
-
a SoundPool object,or null if creation Failed