-->
Audio playback in Godot is actually very straightforward. We add one AudioStreamPlayer
, AudioStreamPlayer2D
or AudioStreamPlayer3D
node, assign an audio stream resource then call its play()
function. However if the node is destroyed in the middle of a playback, the audio will become interrupted. This is a common case when dealing with impacting bullets, player pickups and so on.
In order to help with audio playback without having to worry about node lifetime, I created the Audio Master addon. How to use it can be found here . As usual, the addon itself can be found in this GitHub Repository .