[Godot 3.0 beta 2] How to use AudioStreamPlayer for sfx?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Pin
:warning: Old Version Published before Godot 3 was released.

In Godot 2.1.X
there is SamplePlayer I can put all my sfx
make is singleton and call it

In Godot3.0
do I have to create all the AudioStreamPlayer node for my sfx?

I believe Juan mentioned on facebook that a SampleList for AudioStreamPlayer would be ideal. However, for now you can just create 5-10 AudioStreamPlayer nodes and cycle through them in a function .play("xxx"), check which one isn’t currently playing, to mimick the polyphony effect. Have to keep them tracked in a playlist array (what I do until a native fix is implemented)

wombatTurkey | 2018-01-02 10:48