This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+3 votes

Hello, I'm really curious as how to properly use the AudioStreamPlayer node. As I see it now there are 3 possible ways to go:

  • Each entity has their own single audio player and changes streams depending on the desired sound.
  • Each entity has a separate audio player for each sound effect
  • The audio player is generalized inside a global singleton or inside the current game state script and is called by each interested node. Upon call, the player switches its stream to the desired sound file and plays.

What are the differences between these approaches in terms of efficiency and organization? Also, should local players bee queue_free'd when no longer used? Thanks a lot in advance!

in Engine by (15 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.