SoundPool

Unlike SoundPool, SoundPool is used to play short sounds, such as sound effects.

Example

Loading a single sound effect and playing it.

example



Blocks

create max stream count

Create a SoundPool instance with maximum number of sounds it can hold.

create

TYPEEXPLANATIONREQUIRED
SoundPoolSoundPool ComponentYes
SoundSound file to loadYes

SoundID load

Load a sound file and set a number variable.

load

TYPEEXPLANATIONREQUIRED
SoundPoolSoundPool ComponentYes
SoundSound file to loadYes

play Sound ID

Play the sound file with the matching Sound ID.

play

TYPEEXPLANATIONREQUIRED
SoundPoolSoundPool ComponentYes
SoundSound file to loadYes

stop stream ID

Stop the sound file with the matching Sound ID.

stop

TYPEEXPLANATIONREQUIRED
SoundPoolSoundPool ComponentYes
SoundSound file to loadYes