SoundPool
Unlike SoundPool, SoundPool is used to play short sounds, such as sound effects.
Example
Loading a single sound effect and playing it.

Blocks
create max stream count
Create a SoundPool instance with maximum number of sounds it can hold.

| TYPE | EXPLANATION | REQUIRED |
|---|---|---|
| SoundPool | SoundPool Component | Yes |
| Sound | Sound file to load | Yes |
SoundID load
Load a sound file and set a number variable.

| TYPE | EXPLANATION | REQUIRED |
|---|---|---|
| SoundPool | SoundPool Component | Yes |
| Sound | Sound file to load | Yes |
play Sound ID
Play the sound file with the matching Sound ID.

| TYPE | EXPLANATION | REQUIRED |
|---|---|---|
| SoundPool | SoundPool Component | Yes |
| Sound | Sound file to load | Yes |
stop stream ID
Stop the sound file with the matching Sound ID.

| TYPE | EXPLANATION | REQUIRED |
|---|---|---|
| SoundPool | SoundPool Component | Yes |
| Sound | Sound file to load | Yes |

0 Comments