Skip to content

unable to put newstream.data into $AudioStreamPlayer.stream and play it manually  #8

@Fresh79300

Description

@Fresh79300

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions