| java.lang.Object | |
| ↳ | android.media.SoundPool.Builder |
Builder class for SoundPool objects.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new Builder with the defaults format values.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the
AudioAttributes.
| |||||||||||
Sets the maximum of number of simultaneous streams that can be played simultaneously.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs a new Builder with the defaults format values.
If not provided, the maximum number of streams is 1 (see setMaxStreams(int) to
change it), and the audio attributes have a usage value of
USAGE_MEDIA (see setAudioAttributes(AudioAttributes) to
change them).
Sets the AudioAttributes. For examples, game applications will use attributes
built with usage information set to USAGE_GAME.
| attributes | a non-null |
|---|
| IllegalArgumentException |
|---|
Sets the maximum of number of simultaneous streams that can be played simultaneously.
| maxStreams | a value equal to 1 or greater. |
|---|
| IllegalArgumentException |
|---|