unable to put newstream.data into $AudioStreamPlayer.stream and play it manually.
BTW,
func _on_openmusic_file_selected(path):
var file = File.new()
file.open(path, File.READ)
$AudioStreamPlayer.stream = file.get_current_file()
Idk why this doesn't work with wav mp3 or ogg files.
But if I use your code,
I can't even hear anything or manually control it.
Just asking, should I put your code into the $audiostreamplayer or it's ok to put it in the main node?
thanks for answering!
unable to put newstream.data into $AudioStreamPlayer.stream and play it manually.
BTW,
func _on_openmusic_file_selected(path):
var file = File.new()
file.open(path, File.READ)
$AudioStreamPlayer.stream = file.get_current_file()
Idk why this doesn't work with wav mp3 or ogg files.
But if I use your code,
I can't even hear anything or manually control it.
Just asking, should I put your code into the $audiostreamplayer or it's ok to put it in the main node?
thanks for answering!