Hi, I'm trying to convert a game from Godot 2.1 to 3.4 and I'm having an issue with the audio. Godot 2.1 had a SamplePlayer class that I'm trying to re-create using AudioStreamPlayers but so far I can't get any sounds to actually play.
I'm basically creating a stream player for each sound effect in a directory and creating a dictionary of all the sounds:
used_player = AudioStreamPlayer.new()
used_player.stream = load("res://assets/effects/%s" % file_name)
# store the player keyed by the name
effect_players[effect_name] = used_player
So later I can do something like this:
print("Trying to play missing effect: %s" % name)
I've verified the loaded files are of class
AudioStreamSample and printed the
stream.data.size() to verify they're loaded but still nothing. Audio buses are all at default and all the files are
.wav. Any ideas?