I have created a global script for my background audio and it contains only this code :
extends AudioStreamPlayer
func _ready() -> void:
stream = load("res://Sounds/Soltitude.wav")
playing = true
pass
Now when I launch the game audio plays just fine but then it stops for some reason after some time. I selected the loop option while importing audio but I don't know where things are going wrong