I was having problems importing a .wav file at runtime and I don't know how, but I managed to write a script that gets the wav file into AudioStreamSample nicely.
Here's the link: https://github.com/Gianclgar/GDScriptAudioImport
Hello, just
get_node("AudioStreamSample").stream = load("rep\\myfile.wav")
@moaaaa said: Hello, just get_node("AudioStreamSample").stream = load("rep\\myfile.wav")
@moaaaa said: Hello, just
That only works with already imported files with the project editor :/
it's old godot bug:
https://github.com/godotengine/godot/issues/14879