Godot Version
v4.1.3.stable.mono.official [f06b6836a]
Question
Hi again, this is a simple question because I haven’t been able to find a single tutorial online on how to use this: the AudioStreamPolyphonic. From older tutorials (I assume for Godot 3), it suggests that the resource should have a “tracks” variable that it doesn’t in Godot 4, not even if I try and access it through GDScript.
If someone could let me know how it works, I’d appreciate it a ton. If I misunderstand how you’re meant to do Polyphony through code, also let me know, because I’d prefer keeping audio sources low and playing them through code for how my game’s architecture is set up.
I’m aware the reason why polyphony through code doesn’t work as expected is because when I try and play a new sound through the same source, I am technically swapping out the stream, cutting the sound of prematurely even if the Max Polyphony property is increased above 1. I assume that variable only is considered when you play the same stream multiple times in the same source.
TL;DR: I’m wondering how to you’d polyphonic playback of multiple different audio streams in a single audio stream player using code (preferably C#, but I could hack together a system cross-script with GDScript too).
Thanks in advance,
Ema Beckett