public class SoundPool extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
isGetRandomSound |
int |
numberOfSoundPoolEntries
The number of soundPoolEntry's.
|
Constructor and Description |
---|
SoundPool() |
Modifier and Type | Method and Description |
---|---|
SoundPoolEntry |
addSound(String par1Str,
File par2File)
Adds a sound to this sound pool.
|
SoundPoolEntry |
addSound(String par1Str,
URL url)
URL version of addSound, as the back-end sound engine has full support for various types of URLs
|
SoundPoolEntry |
getRandomSound()
Gets a random SoundPoolEntry.
|
SoundPoolEntry |
getRandomSoundFromSoundPool(String par1Str)
gets a random sound from the specified (by name, can be sound/newsound/streaming/music/newmusic) sound pool.
|
public int numberOfSoundPoolEntries
public boolean isGetRandomSound
public SoundPoolEntry addSound(String par1Str, File par2File)
public SoundPoolEntry addSound(String par1Str, URL url)
par1Str
- The name of the sound to addurl
- The url of the sound resourcepublic SoundPoolEntry getRandomSoundFromSoundPool(String par1Str)
public SoundPoolEntry getRandomSound()