Godot Version
4.4
Question
A possible usecase for this would be to be more strict in my project about audio bus usage, to avoid issues of sounds playing on wrong bus.
I would add nodes like these to the project, and enforce using them instead of the base AudioStreamPlayer, but ideally I would also like to remove the “Bus” input in the inspector, to avoid future misunderstandings and headaches
class_name MusicAudioStreamPlayer
extends AudioStreamPlayer
func _init():
bus = "Music"
class_name VoicesAudioStreamPlayer
extends AudioStreamPlayer
func _init():
bus = "Voices"